Documentation ¶
Index ¶
Constants ¶
View Source
const ( Width = 28 Height = 28 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Label ¶
type Label uint8
Label is a digit label in 0 to 9
func ReadLabelFile ¶
ReadLabelFile opens the named label file (training or test), parses it and returns all labels in order.
type RawImage ¶
type RawImage []byte
Image holds the pixel intensities of an image. 255 is foreground (black), 0 is background (white).
func ReadImageFile ¶
ReadImageFile opens the named image file (training or test), parses it and returns all images in order.
func (RawImage) ColorModel ¶
type Set ¶
Set represents a data set of image-label pairs held in memory
func Load ¶
Load reads both the training and the testing MNIST data sets, given a local directory dir, containing the MNIST distribution files.
func ReadSet ¶
ReadSet reads a set from the images file iname and the corresponding labels file lname
Click to show internal directories.
Click to hide internal directories.