kumulant

RandomForestClassifier

@Serializable
@SerialName(value = "RandomForestClassifier")
data class RandomForestClassifier(val featureSize: Int, val numClasses: Int, val splitCandidates: List<SerializableSplit>, val nbrTrees: Int = StatDefaults.FOREST_SIZE, val config: ClassificationTreeConfig = ClassificationTreeConfig(), val bagging: Boolean = StatDefaults.FOREST_BAGGING, val randomSeed: Int = StatDefaults.TREE_RANDOM_SEED, val leafArm: SeriesStatSpec<ClassCountsResult>? = null) : RegressionStatSpec<ForestClassificationResult> (source)

Spec for RandomForestClassifierStat: ensembled VFDT classification forest.

Constructors

RandomForestClassifier

constructor(featureSize: Int, numClasses: Int, splitCandidates: List<SerializableSplit>, nbrTrees: Int = StatDefaults.FOREST_SIZE, config: ClassificationTreeConfig = ClassificationTreeConfig(), bagging: Boolean = StatDefaults.FOREST_BAGGING, randomSeed: Int = StatDefaults.TREE_RANDOM_SEED, leafArm: SeriesStatSpec<ClassCountsResult>? = null)(source)

Properties

bagging

Oza & Russell Poisson(1) per-tree reweighting.

config

RegressionTree growth tunables (mtry defaults to ceil(sqrt(p)) when null).

featureSize

Number of input features.

leafArm

Per-leaf accumulator recipe; null uses the stat's default leaf arm.

nbrTrees

Trees in the forest.

numClasses

Number of classes.

randomSeed

PRNG seed shared across trees.

splitCandidates

Candidate split pool.