gotch/example/mnist
2020-11-15 10:32:37 +11:00
..
cnn.go corrected Int64Option and Float64Option param functions 2020-11-02 22:35:25 +11:00
linear.go corrected Int64Option and Float64Option param functions 2020-11-02 22:35:25 +11:00
main.go fix(KaimingUniformInit): fixed incorrect init of KaimingUniform method 2020-06-24 12:47:10 +10:00
nn.go converted to pointer receiver at vision sub-package 2020-10-31 22:11:50 +11:00
README.md updated example code on README and added Colab links 2020-11-15 10:32:37 +11:00

Linear Regression, NN, and CNN on MNIST dataset

Open In Colab

MNIST

  • MNIST files can be obtained from this source and put in data/mnist from root folder of this project.

  • Load MNIST data using helper function at vision sub-package

Linear Regression

  • Run with go clean -cache -testcache && go run . -model="linear"

  • Accuracy should be about 91.68%.

Neural Network (NN)

  • Run with go clean -cache -testcache && go run . -model="nn"

  • Accuracy should be about 94%.

Convolutional Neural Network (CNN)

  • Run with go clean -cache -testcache && go run . -model="cnn"

  • Accuracy should be about 99.3%.