Documentation ¶
Index ¶
- func Commands() []cli.Command
- func Distance(x, y *core.Vector) float64
- func RBFKernel(x, y *core.Vector, radius float64) float64
- type KNN
- func (c *KNN) Clear()
- func (self *KNN) Command() cli.Command
- func (c *KNN) Init(ctx *cli.Context)
- func (c *KNN) Kernel(x, y *core.Vector) float64
- func (self *KNN) LoadModel(path string)
- func (c *KNN) Predict(sample *core.Sample) float64
- func (c *KNN) PredictMultiClass(sample *core.Sample) *core.ArrayVector
- func (self *KNN) SaveModel(path string)
- func (c *KNN) Train(dataset *core.DataSet)
- type L1VM
- func (c *L1VM) Clear()
- func (c *L1VM) Command() cli.Command
- func (c *L1VM) Init(ctx *cli.Context)
- func (self *L1VM) LoadModel(path string)
- func (c *L1VM) Predict(sample *core.Sample) float64
- func (c *L1VM) PredictVector(x *core.Vector) float64
- func (self *L1VM) SaveModel(path string)
- func (c *L1VM) Train(dataset *core.DataSet)
- type LinearSVM
- func (c *LinearSVM) Clear()
- func (self *LinearSVM) Command() cli.Command
- func (c *LinearSVM) Init(ctx *cli.Context)
- func (self *LinearSVM) LoadModel(path string)
- func (c *LinearSVM) Predict(sample *core.Sample) float64
- func (c *LinearSVM) PredictVector(x *core.Vector) float64
- func (self *LinearSVM) SaveModel(path string)
- func (c *LinearSVM) Train(dataset *core.DataSet)
- type SVM
- func (c *SVM) Clear()
- func (c *SVM) Command() cli.Command
- func (c *SVM) Init(ctx *cli.Context)
- func (self *SVM) LoadModel(path string)
- func (c *SVM) MatchKKT(y, f, a float64) bool
- func (c *SVM) Predict(sample *core.Sample) float64
- func (c *SVM) PredictVector(x *core.Vector) float64
- func (self *SVM) SaveModel(path string)
- func (c *SVM) Train(dataset *core.DataSet)
- type SVMValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KNN ¶
type KNN struct {
// contains filtered or unexported fields
}
func (*KNN) PredictMultiClass ¶
func (c *KNN) PredictMultiClass(sample *core.Sample) *core.ArrayVector
Click to show internal directories.
Click to hide internal directories.