Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.