Skip to content
forked from petar/GoMNIST

GoMNIST is a Go driver for reading Yann LeCun's MNIST dataset of handwritten digits

License

Notifications You must be signed in to change notification settings

JoshVarga/GoMNIST

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoMNIST

GoMNIST is a Go driver for reading Yann LeCun's MNIST dataset of handwritten digits

The MNIST dataset is included. It is a copy from Yann LeCun's MNIST page.

How to use

Install the packages:

% go get github.com/petar/GoMNIST

Import them in your code as

% import "github.com/petar/GoMNIST"

Load the MNIST training and testing data sets into memory using

train, test, err := Load("./data")
if err != nil {
	…
}

Sweep through the samples

sweeper := train.Sweep()
for {
	image, label, present := sweeper.Next()
	if !present {
		break
	}
	…
}

You can also have random access to the sets, using the methods of Set.

Author

My homepage is Petar Maymounkov. Follow me on Twitter at @maymounkov.

About

GoMNIST is a Go driver for reading Yann LeCun's MNIST dataset of handwritten digits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%