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

Function random_forest

src/machine_learning/random_forest.rs:195–211  ·  view source on GitHub ↗

Convenience function to train a random forest and make predictions

(
    training_data: Vec<(Vec<f64>, f64)>,
    test_point: Vec<f64>,
    num_trees: usize,
    max_depth: usize,
    min_samples_split: usize,
    max_features: Option<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