mnist

package
v0.0.0-...-2a14176 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InputsFromImage

func InputsFromImage(g *image.Gray) (inputs []float64)

func MakeSamples

func MakeSamples(sf SetFiles) ([]neural.Sample, error)

func OutputsFromLabel

func OutputsFromLabel(label byte) (outputs []float64)

func ReadImages

func ReadImages(r io.Reader) ([]*image.Gray, error)

func ReadImagesFile

func ReadImagesFile(filename string) ([]*image.Gray, error)

func ReadInputs

func ReadInputs(r io.Reader) ([][]float64, error)

func ReadInputsFile

func ReadInputsFile(filename string) ([][]float64, error)

func ReadLabels

func ReadLabels(r io.Reader) ([]uint8, error)

func ReadLabelsFile

func ReadLabelsFile(filename string) ([]uint8, error)

func ReadOutputs

func ReadOutputs(r io.Reader) ([][]float64, error)

func ReadOutputsFile

func ReadOutputsFile(filename string) ([][]float64, error)

Types

type DBFiles

type DBFiles struct {
	TrainingSet SetFiles `json:"training-set"`
	TestSet     SetFiles `json:"test-set"`
}

func MakeDBFiles

func MakeDBFiles(directory string) DBFiles

type SetFiles

type SetFiles struct {
	Images string `json:"images"`
	Labels string `json:"labels"`
}

Jump to

Keyboard shortcuts

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