setup_LightCART: Setup LightCART Hyperparameters

View source: R/01_S7_Hyperparameters.R

setup_LightCARTR Documentation

Setup LightCART Hyperparameters

Description

Setup hyperparameters for LightCART training.

Usage

setup_LightCART(
  num_leaves = 32L,
  max_depth = -1L,
  lambda_l1 = 0,
  lambda_l2 = 0,
  min_data_in_leaf = 20L,
  max_cat_threshold = 32L,
  min_data_per_group = 100L,
  linear_tree = FALSE,
  objective = NULL,
  ifw = FALSE
)

Arguments

num_leaves

(Tunable) Positive integer: Maximum number of leaves in one tree.

max_depth

(Tunable) Integer: Maximum depth of trees.

lambda_l1

(Tunable) Numeric: L1 regularization.

lambda_l2

(Tunable) Numeric: L2 regularization.

min_data_in_leaf

(Tunable) Positive integer: Minimum number of data in a leaf.

max_cat_threshold

(Tunable) Positive integer: Maximum number of categories for categorical features.

min_data_per_group

(Tunable) Positive integer: Minimum number of observations per categorical group.

linear_tree

(Tunable) Logical: If TRUE, use linear trees.

objective

Character: Objective function.

ifw

Logical: If TRUE, use Inverse Frequency Weighting in classification.

Details

Get more information from lightgbm::lgb.train.

Value

LightCARTHyperparameters object.

Author(s)

EDG


egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.