algo

package
v0.0.0-...-a9da960 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2016 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Classifier

type Classifier interface {

	//Set training parameters from parameter map
	Init(params map[string]string)

	//Train model on a given dataset
	Train(dataset *core.DataSet)

	//Predict the probability of a sample to be positive sample
	Predict(sample *core.Sample) float64

	SaveModel(path string)
	LoadModel(path string)
}

type Clustering

type Clustering interface {
	Init(params map[string]string)
	Cluster(dataset core.DataSet)
}

type MultiClassClassifier

type MultiClassClassifier interface {
	//Set training parameters from parameter map
	Init(params map[string]string)

	//Train model on a given dataset
	Train(dataset *core.DataSet)

	//Predict the probability of a sample to be positive sample
	PredictMultiClass(sample *core.Sample) *core.ArrayVector

	SaveModel(path string)
	LoadModel(path string)
}

type Regressor

type Regressor interface {

	//Set training parameters from parameter map
	Init(params map[string]string)

	//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)
}

Jump to

Keyboard shortcuts

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