ClassCountsResult
@Serializable
@SerialName(value = "ClassCountsResult")
Snapshot of a K-bin weighted class-count vector. Used as the leaf aggregate for ClassificationTree: the per-leaf running tally of how many (weighted) observations of each class landed in this leaf. Exposes derived class probabilities and the argmax prediction.
Constructors
ClassCountsResult
Properties
counts
Per-class accumulated weight; length numClasses.
entropy
gini
numClasses
Number of classes.
totalWeights
Total weight summed across all classes.
Link copied to clipboard
True when totalWeights is not positive, including zero, negative values, and NaN.
Functions
equals
hashCode
predict
probabilities
Class probabilities; uniform when no observations have been seen yet.