svm

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands() []cli.Command

func Distance

func Distance(x, y *core.Vector) float64

func RBFKernel

func RBFKernel(x, y *core.Vector, radius float64) float64

Types

type KNN

type KNN struct {
	// contains filtered or unexported fields
}

func (*KNN) Clear

func (c *KNN) Clear()

func (*KNN) Command

func (self *KNN) Command() cli.Command

func (*KNN) Init

func (c *KNN) Init(ctx *cli.Context)

func (*KNN) Kernel

func (c *KNN) Kernel(x, y *core.Vector) float64

func (*KNN) LoadModel

func (self *KNN) LoadModel(path string)

func (*KNN) Predict

func (c *KNN) Predict(sample *core.Sample) float64

func (*KNN) PredictMultiClass

func (c *KNN) PredictMultiClass(sample *core.Sample) *core.ArrayVector

func (*KNN) SaveModel

func (self *KNN) SaveModel(path string)

func (*KNN) Train

func (c *KNN) Train(dataset *core.DataSet)

type L1VM

type L1VM struct {
	// contains filtered or unexported fields
}

func (*L1VM) Clear

func (c *L1VM) Clear()

func (*L1VM) Command

func (c *L1VM) Command() cli.Command

func (*L1VM) Init

func (c *L1VM) Init(ctx *cli.Context)

func (*L1VM) LoadModel

func (self *L1VM) LoadModel(path string)

func (*L1VM) Predict

func (c *L1VM) Predict(sample *core.Sample) float64

func (*L1VM) PredictVector

func (c *L1VM) PredictVector(x *core.Vector) float64

func (*L1VM) SaveModel

func (self *L1VM) SaveModel(path string)

func (*L1VM) Train

func (c *L1VM) Train(dataset *core.DataSet)

type LinearSVM

type LinearSVM struct {
	C float64
	// contains filtered or unexported fields
}

func (*LinearSVM) Clear

func (c *LinearSVM) Clear()

func (*LinearSVM) Command

func (self *LinearSVM) Command() cli.Command

func (*LinearSVM) Init

func (c *LinearSVM) Init(ctx *cli.Context)

func (*LinearSVM) LoadModel

func (self *LinearSVM) LoadModel(path string)

func (*LinearSVM) Predict

func (c *LinearSVM) Predict(sample *core.Sample) float64

func (*LinearSVM) PredictVector

func (c *LinearSVM) PredictVector(x *core.Vector) float64

func (*LinearSVM) SaveModel

func (self *LinearSVM) SaveModel(path string)

func (*LinearSVM) Train

func (c *LinearSVM) Train(dataset *core.DataSet)

type SVM

type SVM struct {
	C float64
	// contains filtered or unexported fields
}

func (*SVM) Clear

func (c *SVM) Clear()

func (*SVM) Command

func (c *SVM) Command() cli.Command

func (*SVM) Init

func (c *SVM) Init(ctx *cli.Context)

func (*SVM) LoadModel

func (self *SVM) LoadModel(path string)

func (*SVM) MatchKKT

func (c *SVM) MatchKKT(y, f, a float64) bool

func (*SVM) Predict

func (c *SVM) Predict(sample *core.Sample) float64

func (*SVM) PredictVector

func (c *SVM) PredictVector(x *core.Vector) float64

func (*SVM) SaveModel

func (self *SVM) SaveModel(path string)

func (*SVM) Train

func (c *SVM) Train(dataset *core.DataSet)

type SVMValues

type SVMValues struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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