meta

package
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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaggedModel

type BaggedModel struct {
	base.BaseClassifier
	Models         []base.Classifier
	RandomFeatures int
	// contains filtered or unexported fields
}

BaggedModel trains base.Classifiers on subsets of the original Instances and combine the results through voting

func (*BaggedModel) AddModel

func (b *BaggedModel) AddModel(m base.Classifier)

AddModel adds a base.Classifier to the current model

func (*BaggedModel) Fit

func (b *BaggedModel) Fit(from *base.Instances)

Train generates and trains each model on a randomised subset of Instances.

func (*BaggedModel) Predict

func (b *BaggedModel) Predict(from *base.Instances) *base.Instances

Predict gathers predictions from all the classifiers and outputs the most common (majority) class

IMPORTANT: in the event of a tie, the first class which achieved the tie value is output.

func (*BaggedModel) String

func (b *BaggedModel) String() string

String returns a human-readable representation of the BaggedModel and everything it contains

Jump to

Keyboard shortcuts

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