Skip to content

Commit fb5784f

Browse files
feat: add Random Forest algorithm in machine learning (#1007)
1 parent d850c9c commit fb5784f

File tree

3 files changed

+447
-0
lines changed

3 files changed

+447
-0
lines changed

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
* [Naive Bayes](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/naive_bayes.rs)
216216
* [Perceptron](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/perceptron.rs)
217217
* [Principal Component Analysis](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/principal_component_analysis.rs)
218+
* [Random Forest](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/random_forest.rs)
218219
* [Support Vector Classifier](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/support_vector_classifier.rs)
219220
* Loss Function
220221
* [Average Margin Ranking Loss](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/loss_function/average_margin_ranking_loss.rs)

src/machine_learning/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ mod naive_bayes;
99
mod optimization;
1010
mod perceptron;
1111
mod principal_component_analysis;
12+
mod random_forest;
1213
mod support_vector_classifier;
1314

1415
pub use self::cholesky::cholesky;
@@ -25,4 +26,5 @@ pub use self::naive_bayes::naive_bayes;
2526
pub use self::optimization::{gradient_descent, Adam};
2627
pub use self::perceptron::{classify, perceptron};
2728
pub use self::principal_component_analysis::principal_component_analysis;
29+
pub use self::random_forest::random_forest;
2830
pub use self::support_vector_classifier::{Kernel, SVCError, SVC};

0 commit comments

Comments
 (0)