`import "github.com/chewxy/gorgonia/examples/mnist"`

package mnist handles the mnist data set

- Constants
- func Load(typ, loc string, as tensor.Dtype) (inputs, targets tensor.Tensor, err error)
- type Label
- type RawImage

❖

const ( // Width of the input tensor / picture Width = 28 // Height of the input tensor / picture Height = 28 )

Load loads the mnist data into two tensors

typ can be "train", "test"

loc represents where the mnist files are held

Label is a digit label in 0 to 9

Image holds the pixel intensities of an image. 255 is foreground (black), 0 is background (white).

Package mnist imports 6 packages (graph). Updated 2020-06-28. Refresh now. Tools for package owners.