MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / build_tree

Function build_tree

src/machine_learning/decision_tree.rs:180–265  ·  view source on GitHub ↗

Build the decision tree recursively

(
    data: &[(Vec<f64>, f64)],
    feature_indices: &[usize],
    max_depth: usize,
    min_samples_split: usize,
    current_depth: usize,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

fitMethod · 0.85

Calls 6

get_majority_classFunction · 0.85
find_best_split_featureFunction · 0.85
pushMethod · 0.80
iterMethod · 0.45
lenMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected