VarianceReduction
@Serializable
@SerialName(value = "VarianceReduction")
Mean variance reduction. The classic CART regression criterion.
Functions
Link copied to clipboard
fun SplitMetric.rank(total: WeightedVarianceResult, pos: List<WeightedVarianceResult>, neg: List<WeightedVarianceResult>, minSamplesSplit: Double, minSamplesLeaf: Double): SplitInfo
Score every candidate split and return the top-2 + index. Splits that don't meet minSamplesLeaf on both sides or minSamplesSplit in total are skipped.
Link copied to clipboard
open override fun score(total: WeightedVarianceResult, pos: WeightedVarianceResult, neg: WeightedVarianceResult): Double
Score a candidate split given its total / pos / neg variance snapshots.
score
open override fun score(total: WeightedVarianceResult, pos: WeightedVarianceResult, neg: WeightedVarianceResult): Double(source)
Score a candidate split given its total / pos / neg variance snapshots.