regressor

package
v0.0.0-...-14a59ba Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() []cli.Command

func RegAlgorithmRun

func RegAlgorithmRun(ctx *cli.Context) (err error)

Regression

func RegAlgorithmRunOnDataSet

func RegAlgorithmRunOnDataSet(regressor Regressor, trainSet, testSet *core.RealDataSet) (float64, []*eval.RealPrediction)

Types

type Regressor

type Regressor interface {
	internal.Algorithm
	//Train model on a given dataset
	Train(dataset *core.RealDataSet)
	//Predict the output of an input sample
	Predict(sample *core.RealSample) float64
	SaveModel(path string)
	LoadModel(path string)
}

func GetRegressor

func GetRegressor(method string) Regressor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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