Skip to content

fisproject/gorf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gorf - Random Forest implemtation in Go

Overview

Simple Random Forest implemtation in Go.

Usage

package main

import (
	rf ".."
	"log"
	// "github.com/davecgh/go-spew/spew"
)

func main() {
	features, labels := rf.ParseCSV("data/iris.csv")

	k, estimators, depth := 2, 10, 5
	model := rf.NewForest("classification", k, estimators, depth).Build(features, labels)

	predictions := model.Predict(features)
	log.Println(predictions)

	// Dump the forest.
	// spew.Dump(model)
}

Licence

MIT

Author

t2sy

About

Random Forest implemtation in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages