kumulant

RandomForestRegression

@Serializable
@SerialName(value = "RandomForestRegression")
data class RandomForestRegression(val featureSize: Int, val splitCandidates: List<Split>, val nbrTrees: Int = 10, val config: RegressionTreeConfig = RegressionTreeConfig(), val bagging: Boolean = true, val randomSeed: Int = 0) : RegressionStatSpec<ForestRegressionResult> (source)

Spec for RandomForestRegressionStat: ensembled VFDT regression forest.

Constructors

Link copied to clipboard
constructor(featureSize: Int, splitCandidates: List<Split>, nbrTrees: Int = 10, config: RegressionTreeConfig = RegressionTreeConfig(), bagging: Boolean = true, randomSeed: Int = 0)

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Number of input features.

Link copied to clipboard

Trees in the forest.

Link copied to clipboard

PRNG seed shared across trees.

Link copied to clipboard

Candidate split pool.

Functions

Link copied to clipboard

Wrap this regression spec so updates are forwarded only when pred evaluates true.

Link copied to clipboard
fun <R : Result> RegressionStatSpec<R>.materialize(concurrency: Concurrency = Concurrency.None): RegressionStat<R>
fun StatSpec.materialize(concurrency: Concurrency = Concurrency.None): Stat<*>

Construct a live stat from any StatSpec, dispatching on its modality. Useful for code paths (like StatSchemaDef.materialize) that iterate over an erased Map<String, StatSpec> and don't statically know the modality.

Link copied to clipboard
fun <R : Result> RegressionStatSpec<R>.minMaxScaleFeatures(targetLow: Double = 0.0, targetHigh: Double = 1.0): RegressionStatSpec<R>

Element-wise min-max scale a regression spec's feature vector.

Link copied to clipboard

Wrap this regression spec to keep each update with probability rate; seed feeds the PRNG.

Link copied to clipboard

Element-wise standardise a regression spec's feature vector.

Link copied to clipboard

Wrap this regression spec so it only sees one in every every updates.

Link copied to clipboard

Wrap this regression spec so x is remapped by expr before the inner stat sees it.

Link copied to clipboard

Wrap this regression spec so y is remapped by expr before the inner stat sees it.

Link copied to clipboard

Wrap this regression spec so every update's weight is multiplied by expr.eval(0, y, v).

Link copied to clipboard

Wrap this regression spec so every update uses weight regardless of caller input.

RandomForestRegression

constructor(featureSize: Int, splitCandidates: List<Split>, nbrTrees: Int = 10, config: RegressionTreeConfig = RegressionTreeConfig(), bagging: Boolean = true, randomSeed: Int = 0)(source)

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.

nbrTrees

Trees in the forest.

randomSeed

PRNG seed shared across trees.

splitCandidates

Candidate split pool.