coef.xrf | R Documentation |
Produce rules & coefficients for the RuleFit model
## S3 method for class 'xrf' coef(object, lambda = "lambda.min", ...)
object |
an object of class "xrf" |
lambda |
the lasso penalty parameter to be applied as in 'glmnet' |
... |
ignored arguments |
m <- xrf(Petal.Length ~ ., iris, xgb_control = list(nrounds = 2, max_depth = 2), family = 'gaussian') linear_model_coefficients <- coef(m, lambda = 'lambda.1se')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.