Documentation ¶
Index ¶
- type Layer
- type Network
- func (nn *Network) EpochStats(epoch int) stats.Epoch
- func (nn *Network) Predict(input []float64) []float64
- func (nn *Network) Save(w io.Writer) error
- func (nn *Network) String() string
- func (nn *Network) Train(epochs int, inputs, targets [][]float64, callback func(int) bool)
- func (nn *Network) TrainingDuration() time.Duration
- type NetworkOpt
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func New ¶
func New(opt ...NetworkOpt) *Network
func (*Network) TrainingDuration ¶
type NetworkOpt ¶
type NetworkOpt func(*networkOpts)
func Activation ¶
func Activation(v func(float64) float64) NetworkOpt
func ActivationDerivative ¶
func ActivationDerivative(v func(float64) float64) NetworkOpt
func LearningRate ¶
func LearningRate(v float64) NetworkOpt
func Shapes ¶
func Shapes(v []int) NetworkOpt
Click to show internal directories.
Click to hide internal directories.