Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MnistPredict ¶
func MnistPredict(net *NeuralNetwork, path string)
MnistPredict train network with mnist data
func MnistTrain ¶
func MnistTrain(net *NeuralNetwork, path string)
MnistTrain train network with mnist data
Types ¶
type NeuralNetwork ¶
type NeuralNetwork struct {
// contains filtered or unexported fields
}
NeuralNetwork is struct of artificial neural network
func CreateNetwork ¶
func CreateNetwork(input, hidden, output int, rate float64) NeuralNetwork
CreateNetwork factory with random weights
func (*NeuralNetwork) ImagePredict ¶
ImagePredict get predict from image file
func (NeuralNetwork) Predict ¶
func (net NeuralNetwork) Predict(inputData []float64) mat.Matrix
Predict give an answer
func (*NeuralNetwork) Train ¶
func (net *NeuralNetwork) Train(inputData []float64, targetData []float64)
Train NeuralNetwork
Click to show internal directories.
Click to hide internal directories.