coef.supclass: Coefficient Estimates of A Trained Sup-Norm Classifier
Description
Extract coefficient estimates from an supclass
object.
Usage
# S3 method for supclass
coef(object, selection = c("cv_1se", "cv_min", "all"), ...)
Value
A matrix representing the coefficient estimates or an array
representing all the selected solutions.
Arguments
- object
An object of class supclass
.
- selection
An integer vector for the indices of solution or a
character value specifying how to select a particular set of coefficient
estimates from the entire solution path. If the specified
supclass
object contains the cross-validation results, one may
set selection
to "cv_min"
(or "cv_1se"
) for the
estimates giving the smallest cross-validation error (or the set of
estimates resulted from the largest lambda within one standard
error of the smallest cross-validation error). The entire solution path
will be returned in an array if selection = "all"
or no
cross-validation results are available in the specified supclass
object.
- ...
Other arguments not used now.
Examples
Run this code## see examples of `supclass()`.
Run the code above in your browser using DataLab