mnist

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package MNIST is the 60000 + 10000 handwritten digits dataset

Index

Constants

View Source
const ImgSize = 28

original

View Source
const SmallImgSize = 13

downscaled

Variables

View Source
var SmallTrainSet, SmallInferSet [][SmallImgSize * SmallImgSize]byte
View Source
var TrainLabels, InferLabels []byte
View Source
var TrainSet, InferSet [][ImgSize * ImgSize]byte

Functions

func Error

func Error() error

Error reports whether there was any error initializing the dataset

func ShuffleInfer

func ShuffleInfer()

ShuffleInfer shuffles the mnist infer dataset

func ShuffleTrain

func ShuffleTrain()

ShuffleTrain shuffles the mnist train dataset

Types

type Input

type Input [ImgSize * ImgSize]byte

Input is the type of input image

func (*Input) Feature

func (i *Input) Feature(n int) uint32

Feature extracts the n-th feature from input

type SmallInput

type SmallInput [SmallImgSize * SmallImgSize]byte

SmallInput is the type of small input image

func (*SmallInput) Feature

func (i *SmallInput) Feature(n int) uint32

Feature extracts the n-th feature from small input

Jump to

Keyboard shortcuts

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