ensemble

package
Version: v0.0.0-...-4fa0698 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2014 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomForest

type RandomForest struct {
	base.BaseClassifier
	ForestSize int
	Features   int
	Model      *meta.BaggedModel
}

RandomForest classifies instances using an ensemble of bagged random decision trees

func NewRandomForest

func NewRandomForest(forestSize int, features int) *RandomForest

NewRandomForests generates and return a new random forests forestSize controls the number of trees that get built features controls the number of features used to build each tree

func (*RandomForest) Fit

func (f *RandomForest) Fit(on *base.Instances)

Train builds the RandomForest on the specified instances

func (*RandomForest) Predict

func (f *RandomForest) Predict(with *base.Instances) *base.Instances

Predict generates predictions from a trained RandomForest

func (*RandomForest) String

func (f *RandomForest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL