Documentation ¶
Index ¶
- Constants
- func Activator(f func(float64) float64) func(*mat64.Dense) *mat64.Dense
- func Format(examples [][][]float64) (*mat64.Dense, *mat64.Dense)
- func Htan(z float64) float64
- func Htanprime(z float64) float64
- func Normals(rows, cols int) *mat64.Dense
- func Sigmoid(z float64) float64
- func SigmoidPrime(z float64) float64
- type Mind
- type Results
- type Weights
Constants ¶
View Source
const Version = "0.0.1"
Version.
Variables ¶
This section is empty.
Functions ¶
func SigmoidPrime ¶
SigmoidPrime calculates the sigmoid prime of `z`.
Types ¶
type Mind ¶
type Mind struct { LearningRate float64 // speed the network will learn at Iterations int // number of training iterations HiddenUnits int // number of units in hidden layer Activate func(*mat64.Dense) *mat64.Dense // activation function ActivatePrime func(*mat64.Dense) *mat64.Dense // derivative of activation function Weights // learning weights Results // learning results }
Mind represents the neural network.
Click to show internal directories.
Click to hide internal directories.