Versions in this module Expand all Collapse all v0 v0.0.2 Jul 27, 2024 Changes in this version type Activation + Show func() string + func (a *Activation) UnmarshalJSON(text []byte) error + func (a Activation) MarshalJSON() ([]byte, error) + func (a Activation) String() string v0.0.1 Jul 27, 2024 Changes in this version + var BiLn = Activation + var ReLU = Activation + var Sigmoid = Activation + var Tanh = Activation + type Activation struct + Activate func(float64) float64 + Derivative func(float64) float64 + func Linear(slope float64) Activation + func Scale(General Activation, factor float64) Activation + func Strech(General Activation, factor float64) Activation + type Job func() + type Model struct + Internal Activation + Output Activation + Weights []mat.Mutable + func NewModel(source *rand.Rand, Internal Activation, Output Activation, layers ...int) *Model + func (m *Model) Clone() *Model + func (m Model) InputSize() int + func (m Model) OutputSize() int + func (m Model) Predict(start mat.Vector) mat.Vector + func (m Model) String() string + type TrainingContext struct + GeneratedNodes []*mat.VecDense + PreNormalized []*mat.VecDense + func (tc *TrainingContext) Train(trainingSet [][]mat.Vector, iterations int, lrate float64, ...) + func (tc *TrainingContext) TrainChunked(trainingSet [][]mat.Vector, iterations int, workers int, chunksize int, ...) + type Workers struct + func (w *Workers) Go(j Job) + func (w *Workers) Start(size int) + func (w *Workers) Stop()