Documentation ¶
Index ¶
- Constants
- func FindAverage(input []LabeledData) float32
- type LabeledData
- func LoadMNIST(filedirectory string, filenameLabel string, filenameData string) ([]LabeledData, error)
- func LoadMNIST11gan(filedirectory string, filenameLabel string, filenameData string) ([]LabeledData, error)
- func MakeEncodeeSoftmaxPerPixelCopy(data []LabeledData) (copydata []LabeledData)
- func NormalizeData(data []LabeledData, average float32) []LabeledData
Constants ¶
View Source
const ( Width = 28 Height = 28 )
Variables ¶
This section is empty.
Functions ¶
func FindAverage ¶
func FindAverage(input []LabeledData) float32
Types ¶
type LabeledData ¶
func LoadMNIST ¶
func LoadMNIST(filedirectory string, filenameLabel string, filenameData string) ([]LabeledData, error)
func LoadMNIST11gan ¶
func LoadMNIST11gan(filedirectory string, filenameLabel string, filenameData string) ([]LabeledData, error)
LoadMNIST11gan will add an extra zero at the end so that it has a fake class
func MakeEncodeeSoftmaxPerPixelCopy ¶
func MakeEncodeeSoftmaxPerPixelCopy(data []LabeledData) (copydata []LabeledData)
MakeEncodeeSoftmaxPerPixelCopy this is for NCHW
func NormalizeData ¶
func NormalizeData(data []LabeledData, average float32) []LabeledData
func (LabeledData) MakeJPGsimple ¶
func (data LabeledData) MakeJPGsimple(index int) error
Click to show internal directories.
Click to hide internal directories.