coef.xrf: Produce rules & coefficients for the RuleFit model

View source: R/xrf.R

coef.xrfR 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')


xrf documentation built on Oct. 4, 2022, 9:06 a.m.