rtemis

Command Palette

Search for a command to run...

RangerHyperparameters

Variant

Ranger random forest. See `setup_Ranger`.

Raw JSONv1Unknown properties rejected

Properties

num_treestunable
integerdefault 500≥ 1

Number of trees.

mtry
integer | integer[] | nulldefault null≥ 1≥ 1 items

Number of features considered at each split. NULL = ranger default. Cannot exceed the number of features in the training data.

importance
stringdefault "impurity"

Variable importance mode.

one of"none""impurity""impurity_corrected""permutation"

write_forest
booleandefault true

Save the forest object (required for prediction).

probability
booleandefault false

Grow a probability forest (classification only).

min_node_size
integer | integer[] | nulldefault null≥ 1≥ 1 items

Minimal node size. NULL = ranger default by task type.

min_bucket
integer | nulldefault null≥ 1

Minimal number of samples in a terminal node (survival only).

max_depth
integer | integer[] | nulldefault null≥ 0≥ 1 items

Maximal tree depth. NULL or 0 = unlimited.

replacetunable
booleandefault true

Sample with replacement.

sample_fractiontunable
numberdefault 1≤ 1> 0

Fraction of observations to sample per tree.

case_weights
array | nulldefault null≥ 1 items

Per-observation sampling weights. Must have one value per case.

class_weights
array | nulldefault null≥ 1 items

Per-class weights (classification only). Must have one value per class.

splitrule
string | string[] | nulldefault null≥ 1 items

Splitting rule (task-dependent). NULL = ranger default.

num_random_splitstunable
integerdefault 1≥ 1

Random splits per candidate variable (extratrees splitrule).

alphatunable
numberdefault 0.5≥ 0≤ 1

Significance threshold to allow splitting (maxstat splitrule).

minproptunable
numberdefault 0.1≥ 0≤ 1

Lower quantile of covariate distribution considered for splitting (maxstat splitrule).

poisson_tau
numberdefault 1> 0

Tau parameter (poisson splitrule).

always_split_variables
array | nulldefault null≥ 1 items

Variables always included as split candidates. Values must name training features.

scale_permutation_importance
booleandefault false

Scale permutation importance by its standard error.

local_importance
booleandefault false

Compute local (per-observation) permutation importance.

regularization_factortunable
numberdefault 1≥ 0

Regularization factor penalizing variables with many split points.

regularization_usedepth
booleandefault false

Apply the regularization factor with node depth.

keep_inbag
booleandefault false

Record how often each observation is in-bag per tree.

holdout
booleandefault false

Hold-out mode: hold out samples with case weight 0.

quantreg
booleandefault false

Prepare quantile prediction (regression only).

time_interest
array | nulldefault null≥ 1 items

Time points of interest for survival prediction.

oob_error
booleandefault true

Compute the OOB prediction error.

save_memory
booleandefault false

Use the memory-saving (slower) splitting mode.

verbose
booleandefault true

Show ranger computation status.

node_stats
booleandefault false

Save additional node statistics.

seed
integer | nulldefault null

Random seed. NULL = generated from R.

na_action
stringdefault "na.learn"

How to handle missing values.

one of"na.learn""na.omit""na.fail"

ifwtunable
booleandefault false

Inverse Frequency Weighting in classification.

split_select_weights
number[] | number[][] | null≥ 1 items≥ 1 items

Optional per-feature split-selection probabilities in [0, 1]: a single vector applied to every tree, or a list of length `num_trees` with one weight vector per tree. null uses the ranger default.

respect_unordered_factors
string | boolean | null

Handling of unordered factors: "partition", "ignore", or "order"; or a logical (TRUE corresponds to "partition"). null uses the ranger default.

one of"partition""ignore""order"

inbag
integer[][] | null≥ 1 items

Optional manually-set in-bag counts: a list of length `num_trees`, each a per-observation vector of non-negative counts. null uses the ranger default (bootstrap sampling).

Relationships