Documentation ¶
Index ¶
- Constants
- func BaseNetworkConstructor(in, out int) func(key model.Key, segments mlmodel.Segments) *BaseNetwork
- func SV(v []float64) xmath.Vector
- func V(v []float64) xmath.Vector
- type BaseNetwork
- type ConstructNetwork
- type DataSet
- type GRU
- func (gru *GRU) Config() mlmodel.Model
- func (gru *GRU) Load(key model.Key, detail mlmodel.Detail) error
- func (gru *GRU) Loss(actual, predicted [][]float64) []float64
- func (gru *GRU) Predict(x [][]float64) ([][]float64, ml.Metadata, error)
- func (gru *GRU) Save(key model.Key, detail mlmodel.Detail) error
- func (gru *GRU) Train(x [][]float64, y [][]float64) (ml.Metadata, error)
- type HMM
- func (hmm *HMM) Config() mlmodel.Model
- func (hmm *HMM) Load(key model.Key, detail mlmodel.Detail) error
- func (hmm *HMM) Loss(actual, predicted [][]float64) []float64
- func (hmm *HMM) Predict(x [][]float64) ([][]float64, ml.Metadata, error)
- func (hmm *HMM) Save(key model.Key, detail mlmodel.Detail) error
- func (hmm *HMM) Train(x [][]float64, y [][]float64) (ml.Metadata, error)
- type MultiNetwork
- func (m *MultiNetwork) Config() mlmodel.Model
- func (m *MultiNetwork) Load(key model.Key, detail mlmodel.Detail) error
- func (m *MultiNetwork) Loss(actual, predicted [][]float64) []float64
- func (m *MultiNetwork) Predict(x [][]float64) ([][]float64, ml.Metadata, error)
- func (m *MultiNetwork) Save(key model.Key, detail mlmodel.Detail) error
- func (m *MultiNetwork) Train(x [][]float64, y [][]float64) (ml.Metadata, error)
- type Network
- type NeuralNet
- func (n *NeuralNet) Config() mlmodel.Model
- func (n *NeuralNet) Load(key model.Key, detail mlmodel.Detail) error
- func (n *NeuralNet) Loss(actual, predicted [][]float64) []float64
- func (n *NeuralNet) Predict(x [][]float64) ([][]float64, ml.Metadata, error)
- func (n *NeuralNet) Save(key model.Key, detail mlmodel.Detail) error
- func (n *NeuralNet) Train(x [][]float64, y [][]float64) (ml.Metadata, error)
- type Performance
- type Performances
- type Polynomial
- func (p *Polynomial) Config() mlmodel.Model
- func (p *Polynomial) Load(key model.Key, detail mlmodel.Detail) error
- func (p *Polynomial) Loss(actual, predicted [][]float64) []float64
- func (p *Polynomial) Predict(x [][]float64) ([][]float64, ml.Metadata, error)
- func (p *Polynomial) Save(key model.Key, detail mlmodel.Detail) error
- func (p *Polynomial) Train(x [][]float64, y [][]float64) (ml.Metadata, error)
- type RandomForest
- func (r *RandomForest) Config() mlmodel.Model
- func (r *RandomForest) Load(key model.Key, detail mlmodel.Detail) error
- func (r *RandomForest) Loss(actual, predicted [][]float64) []float64
- func (r *RandomForest) Predict(x [][]float64) ([][]float64, ml.Metadata, error)
- func (r *RandomForest) Save(key model.Key, detail mlmodel.Detail) error
- func (r *RandomForest) Train(x [][]float64, y [][]float64) (ml.Metadata, error)
- type Stats
- type Tracker
Constants ¶
View Source
const FOREST_KEY string = "net.RandomForest"
View Source
const GRU_KEY string = "net.GRU"
View Source
const HMM_KEY string = "net.HMM"
View Source
const NN_KEY string = "net.NeuralNet"
View Source
const POLY_KEY string = "net.Polynomial"
Variables ¶
This section is empty.
Functions ¶
func BaseNetworkConstructor ¶
Types ¶
type BaseNetwork ¶
type BaseNetwork struct {
// contains filtered or unexported fields
}
BaseNetwork represents the basic network flow logic
func NewBaseNetwork ¶
func NewBaseNetwork(key model.Key, in, out int, gen ...ConstructNetwork) *BaseNetwork
type ConstructNetwork ¶
ConstructNetwork defines a network constructor func.
type DataSet ¶
type DataSet struct { Key model.Key In [][]float64 Out [][]float64 PrevOut [][]float64 // contains filtered or unexported fields }
DataSet is a single training segment of several input and output tensors
func NewDataSet ¶
type MultiNetwork ¶
type MultiNetwork struct {
// contains filtered or unexported fields
}
func NewMultiNetwork ¶
func NewMultiNetwork(nn ...Network) *MultiNetwork
func (*MultiNetwork) Config ¶
func (m *MultiNetwork) Config() mlmodel.Model
func (*MultiNetwork) Loss ¶
func (m *MultiNetwork) Loss(actual, predicted [][]float64) []float64
type Network ¶
type Network interface { Train(x [][]float64, y [][]float64) (ml.Metadata, error) Predict(x [][]float64) ([][]float64, ml.Metadata, error) Loss(actual, predicted [][]float64) []float64 Config() mlmodel.Model Load(key model.Key, detail mlmodel.Detail) error Save(key model.Key, detail mlmodel.Detail) error }
Network is a generic network interface that receives a list of tensors and input an output
type NeuralNet ¶
type NeuralNet struct {
// contains filtered or unexported fields
}
func NewNeuralNet ¶
type Performance ¶
type Performances ¶
type Performances []Performance
func (Performances) Len ¶
func (u Performances) Len() int
func (Performances) Less ¶
func (u Performances) Less(i, j int) bool
func (Performances) Swap ¶
func (u Performances) Swap(i, j int)
type Polynomial ¶
type Polynomial struct {
// contains filtered or unexported fields
}
func NewPolynomial ¶
func NewPolynomial(cfg mlmodel.Model) *Polynomial
func (*Polynomial) Config ¶
func (p *Polynomial) Config() mlmodel.Model
func (*Polynomial) Loss ¶
func (p *Polynomial) Loss(actual, predicted [][]float64) []float64
type RandomForest ¶
type RandomForest struct {
// contains filtered or unexported fields
}
func NewRandomForest ¶
func NewRandomForest(cfg mlmodel.Model) *RandomForest
func (*RandomForest) Config ¶
func (r *RandomForest) Config() mlmodel.Model
func (*RandomForest) Loss ¶
func (r *RandomForest) Loss(actual, predicted [][]float64) []float64
Source Files ¶
Click to show internal directories.
Click to hide internal directories.