Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Random Forest implemtation in GoLang
Go Python Shell
branch: master

Merge pull request #3 from alimoeeny/patch-1

for people on unixy things
latest commit 46700521f3
@fxsjy authored


  • RF.go is an implementation of Random Forest in GoLang.

    Random forest (or random forests) is an ensemble classifier that consists of many
     decision trees and outputs the class that is the mode of the classes output by 
     individual trees.
  • RF.go can train trees in parallel mode with assigning go-routine to each decision tree, which can utilize multiple-core CPU efficiently.

  • On the famous dataset MNIST, RF.go can get 2.8% error rate with configuration of 100 trees

  • RF.go supports both Classification and Regression. The examples can be found in the repository.

  • RF.go supports dumpping and loading the forest data structure between RAM and disk, in a JSON format file


  1. Install Go
  2. $ go get This will put the binary in $GOROOT/bin
Something went wrong with that request. Please try again.