coef.xrf {xrf}R Documentation

Produce rules & coefficients for the RuleFit model

Description

Produce rules & coefficients for the RuleFit model

Usage

## S3 method for class 'xrf'
coef(object, lambda = "lambda.min", ...)

Arguments

object

an object of class "xrf"

lambda

the lasso penalty parameter to be applied as in 'glmnet'

...

ignored arguments

Examples

m <- xrf(Petal.Length ~ ., iris,
         xgb_control = list(nrounds = 2, max_depth = 2),
         family = 'gaussian')
linear_model_coefficients <- coef(m, lambda = 'lambda.1se')


[Package xrf version 0.2.2 Index]