Documentation ¶
Index ¶
- Constants
- func Measure(net *nn.Network, batchs interface{}, metric nn.Metric, verbosity Verbosity) (ok bool, err error)
- type AvgLoss
- type Batchs
- type Classification
- type Dataset
- type Erfc
- type Gym
- type NullState
- func (s *NullState) FinishEpoch(net *nn.Network, test Batchs) (metric float32, satisfied bool, err error)
- func (s *NullState) LogBatchLoss(loss float32) error
- func (s *NullState) NextEpoch(maxEpochs int) (int, error)
- func (s *NullState) Preset(net *nn.Network) (nn.Optimizer, error)
- func (s *NullState) Setup(net *nn.Network, seed int) (int, error)
- type State
- type Verbosity
Constants ¶
View Source
const StopTraining = -1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AvgLoss ¶
type Classification ¶
type Classification struct { Accuracy float32 // contains filtered or unexported fields }
func (*Classification) Collect ¶
func (c *Classification) Collect(data, label []float32)
func (*Classification) Reset ¶
func (c *Classification) Reset()
func (*Classification) Satisfy ¶
func (c *Classification) Satisfy() bool
func (*Classification) Value ¶
func (c *Classification) Value() float32
type Gym ¶
type NullState ¶
type NullState struct { Metric nn.Metric Epoch int Optimizer nn.OptimizerConf }
func (*NullState) FinishEpoch ¶
func (*NullState) LogBatchLoss ¶
Click to show internal directories.
Click to hide internal directories.