Documentation ¶
Index ¶
- func GetSortedFeatures(x *map[string]float64) []string
- func LoadData(fname string) (*[]map[string]float64, *[]string)
- func LoadFromStdin() ([]map[string]float64, []string)
- func Max(x, y float64) float64
- func Min(x, y float64) float64
- func Normal_CDF(mu, sigma float64) func(x float64) float64
- func ShuffleData(x *[]map[string]float64, y *[]string)
- type Arow
- type CW
- type Classifier
- type Dict
- type Learner
- func (this *Learner) Fit(*[]map[string]float64, *[]int)
- func (this *Learner) GetDics() (*Dict, *Dict)
- func (this *Learner) GetParam() *[][]float64
- func (this *Learner) Name() string
- func (this *Learner) Save(fname string)
- func (this *Learner) SetDics(ftdict, labeldict *Dict)
- func (this *Learner) SetParam(w *[][]float64)
- type LearnerInterface
- type PA
- type Perceptron
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSortedFeatures ¶
func LoadFromStdin ¶
func Normal_CDF ¶
Cumulative Distribution Function for the Normal distribution
func ShuffleData ¶
Types ¶
type Arow ¶
type Arow struct { *Learner // contains filtered or unexported fields }
- http://webee.technion.ac.il/people/koby/publications/arow_nips09.pdf - http://web.eecs.umich.edu/~kulesza/pubs/arow_mlj13.pdf
type CW ¶
type CW struct { *Learner // contains filtered or unexported fields }
- http://www.cs.jhu.edu/~mdredze/publications/icml_variance.pdf - http://www.aclweb.org/anthology/D09-1052 - http://www.jmlr.org/papers/volume13/crammer12a/crammer12a.pdf
type Classifier ¶
func LoadClassifier ¶
func LoadClassifier(fname string) Classifier
func NewClassifier ¶
func NewClassifier() Classifier
type LearnerInterface ¶
type PA ¶
type PA struct { *Learner C float64 /* degree of aggressiveness */ Tau func(float64, float64, float64) float64 }
http://www.jmlr.org/papers/volume7/crammer06a/crammer06a.pdf
type Perceptron ¶
type Perceptron struct {
*Learner
}
func NewPerceptron ¶
func NewPerceptron() *Perceptron
func (*Perceptron) Name ¶
func (this *Perceptron) Name() string
Click to show internal directories.
Click to hide internal directories.