SkillAgentSearch skills...

RandomForests

a 1500 lines simple C++ implementation of RandomForests with detailed comments

Install / Use

/learn @handspeaker/RandomForests
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

RandomForests

A 1500 lines simple C++ implementation of RandomForests with detailed comments. No dependency, support regression and classification.

quick start

  1. download MNIST dataset from http://yann.lecun.com/exdb/mnist/ and unzip train&test data in some dir
  2. git clone https://github.com/handspeaker/RandomForests.git
  3. cd RandomForests and make
  4. run the following command: <br> ./RandomForests <br> mnist_train_image_file_path <br> mnist_train_label_file_path <br> mnist_test_image_file_path <br> mnist_test_label_file_path <br>

more

Open main.cpp file and modify as you want. In RandomForest.h there are some parameters you can change. input samples is a matrix, every row is a sample.

View on GitHub
GitHub Stars110
CategoryDevelopment
Updated1mo ago
Forks50

Languages

C++

Security Score

80/100

Audited on Feb 18, 2026

No findings