1用法
predict
是一个泛型函数,用于根据各种模型拟合函数的结果进行预测。
就是根据不同的模型预测模型的结果
模型的结果有几种不同的表现形式(概率,类别)
2参数
method for class 'glmnet'
predict( object,
newx,
s = NULL,
type = c("link", "response", "coefficients", "nonzero", "class"),
exact = FALSE,
newoffset, ... )