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

Function decision_tree

src/machine_learning/decision_tree.rs:337–345  ·  view source on GitHub ↗

Convenience function to train a decision tree and make predictions

(
    training_data: Vec<(Vec<f64>, f64)>,
    test_point: Vec<f64>,
    max_depth: usize,
    min_samples_split: usize,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

predictMethod · 0.45

Tested by 1