Versions in this module Expand all Collapse all v0 v0.2.0 Jun 1, 2021 Changes in this version + var ErrNotEnoughLayers = errors.New("too few layers, minimum of 3 required") + type ActivationFunction int + const ArSinH + const BentIdentity + const LeakyReLU + const ReLU + const Sigmond + func (a ActivationFunction) String() string + type Network struct + func Load(r io.Reader) (*Network, error) + func LoadFrom(bs []byte) (*Network, error) + func NewNetwork(ls []int, activationFunc ActivationFunction) (*Network, error) + func (n *Network) Export(w io.Writer) error + func (n *Network) MarshalJSON() ([]byte, error) + func (n *Network) Predict(input []float64) []float64 + func (n *Network) Train(trainingData [][][]float64, epochs int, lrate float64, debug bool) + func (n *Network) UnmarshalJSON(data []byte) error