Skip to content

Commit 94e2df3

Browse files
feat: add Random Forest algorithm in machine learning
1 parent a6f9ffd commit 94e2df3

File tree

3 files changed

+442
-0
lines changed

3 files changed

+442
-0
lines changed

DIRECTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@
214214
* [Naive Bayes](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/naive_bayes.rs)
215215
* [Perceptron](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/perceptron.rs)
216216
* [Principal Component Analysis](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/principal_component_analysis.rs)
217+
* [Random Forest](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/random_forest.rs)
217218
* [Support Vector Classifier](https://github.com/TheAlgorithms/Rust/blob/master/src/machine_learning/support_vector_classifier.rs)
218219
* Loss Function
219220
* [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)