kumulant

TreeClassificationResult

@Serializable
@SerialName(value = "TreeClassificationResult")
data class TreeClassificationResult(val root: TreeClassificationNodeResult) : Result(source)

Classification mirror of TreeRegressionResult.

Constructors

Link copied to clipboard
constructor(root: TreeClassificationNodeResult)

Properties

Link copied to clipboard

Number of classes the tree is configured for.

Link copied to clipboard

Root of the snapshot tree.

Link copied to clipboard

Cumulative weight folded into the tree.

Functions

Link copied to clipboard

Walk to the leaf the context x resolves to and return its class-count snapshot.

Link copied to clipboard

Argmax class index at the leaf x resolves to.

Link copied to clipboard

Class probabilities at the leaf x resolves to.

TreeClassificationResult

findLeaf

Walk to the leaf the context x resolves to and return its class-count snapshot.

numClasses

Number of classes the tree is configured for.

predict

Argmax class index at the leaf x resolves to.

probabilities

Class probabilities at the leaf x resolves to.

root

Root of the snapshot tree.

totalWeights

Cumulative weight folded into the tree.