Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NN ¶
type NN struct { // Whether the problem is regression or classification Regression bool // Number of nodes in each layer NNodes []int // Activations for each layer Activations [][]float64 // Weights Weights [][][]float64 // Last change in weights for momentum Changes [][][]float64 }
NN struct is used to represent a neural network
func New ¶
New creates a new neural network
'nInputs' is number of nodes in input layer
'nHiddens' is array of numbers of nodes in hidden layers
'nOutputs' is number of nodes in output layer
'isRegression' is whether the problem is regression or classification
return the neural network
func (*NN) Config ¶
Config the neural network, also reset all trained weights
'nInputs' is number of nodes in input layer
'nHiddens' is array of numbers of nodes in hidden layers
'nOutputs' is number of nodes in output layer
'isRegression' is whether the problem is regression or classification
Click to show internal directories.
Click to hide internal directories.