Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Network ¶
type Network struct { NumLayers int Sizes *mat64.Dense Weights []*mat64.Dense Biases []*mat64.Dense TestFunc TestCompFunc }
Network represents the neural network with its sizes, layers, weights, Biases and cost function.
func (*Network) DumpWeightsBiases ¶
DumpWeightsBiases dumps the weights and biases of the network onto a given file.
func (*Network) FeedForward ¶
FeedForward propagates the input through the network and returns the output.
func (*Network) Init ¶
Init initializes the weights and Biases and set the default cost function of the neural network.
func (*Network) ReadWeightsBiases ¶
ReadWeightsBiases reads weights and biases and sets it onto the network. complimentary to DumpWeightsBiases.
type TestCompFunc ¶
TestCompFunc is to be defined by the user, here the user gets the output from the Neural Network and the desired output. The user needs to return if the output is acceptable or not.