| score | R Documentation |
This function is a unified interface to return various types of loss for a
model fit with SLOPE().
score(object, x, y, measure, weights = NULL)
## S3 method for class 'GaussianSLOPE'
score(object, x, y, measure = c("mse", "mae"), weights = NULL)
## S3 method for class 'BinomialSLOPE'
score(
object,
x,
y,
measure = c("mse", "mae", "deviance", "misclass", "auc"),
weights = NULL
)
## S3 method for class 'MultinomialSLOPE'
score(
object,
x,
y,
measure = c("mse", "mae", "deviance", "misclass"),
weights = NULL
)
## S3 method for class 'PoissonSLOPE'
score(object, x, y, measure = c("mse", "mae"), weights = NULL)
object |
an object of class |
x |
feature matrix |
y |
response |
measure |
type of target measure. |
weights |
observation weights as in |
The measure along the regularization path depending on the value in
measure.
SLOPE(), predict.SLOPE()
Other SLOPE-methods:
coef.SLOPE(),
deviance.SLOPE(),
plot.SLOPE(),
predict.SLOPE(),
print.SLOPE(),
summary.SLOPE()
x <- subset(infert, select = c("induced", "age", "pooled.stratum"))
y <- infert$case
fit <- SLOPE(x, y, family = "binomial")
score(fit, x, y, measure = "auc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.