nn

package
v0.0.0-...-ed7911c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2019 License: MIT Imports: 15 Imported by: 0

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

func (net *NeuralNetwork) ImagePredict(file io.Reader) (int, float64, []float64)

ImagePredict get predict from image file

func (*NeuralNetwork) Load

func (net *NeuralNetwork) Load() error

Load NeuralNetwork

func (NeuralNetwork) Predict

func (net NeuralNetwork) Predict(inputData []float64) mat.Matrix

Predict give an answer

func (*NeuralNetwork) Save

func (net *NeuralNetwork) Save()

Save NeuralNetwork

func (*NeuralNetwork) Train

func (net *NeuralNetwork) Train(inputData []float64, targetData []float64)

Train NeuralNetwork

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL