FeatureValuePair
Module: strata.tree • Kind: struct • Traits: Comparable, Copyable, Movable
Source: strata/tree/splitter.mojo
struct FeatureValuePair(Comparable, Copyable, Movable)from strata.tree import FeatureValuePairSample value pair for sorting along a single feature dimension.
Constructors
Section titled “Constructors”def __init__( out self, feat_val: Float64, sample_idx: Int, target_val: Float64 = 0.0, target_class: Int = 0,)| Argument | Type | Description |
|---|---|---|
feat_val |
Float64 |
— |
sample_idx |
Int |
— |
target_val |
Float64 |
— |
target_class |
Int |
— |