C# Class MNIST.MyMNISTImage

Mostra file Open project: GoodAI/BrainSimulator Class Usage Examples

Public Methods

Method Description
MyMNISTImage ( BinaryReader brImages, BinaryReader brLabels, int width = 28, int height = 28 ) : System

Alternative optimized constructor; Directly reads from referenced BinaryReaders into inner data store m_data. The normalization into <0, 1> is also performed right away with respect to min = 0, max = 255 of the read byte value.

MyMNISTImage ( byte data, byte label, int width = 28, int height = 28 ) : System
ToBinary ( ) : void

Private Methods

Method Description
Normalize ( ) : void

Method Details

MyMNISTImage() public method

Alternative optimized constructor; Directly reads from referenced BinaryReaders into inner data store m_data. The normalization into <0, 1> is also performed right away with respect to min = 0, max = 255 of the read byte value.
public MyMNISTImage ( BinaryReader brImages, BinaryReader brLabels, int width = 28, int height = 28 ) : System
brImages System.IO.BinaryReader
brLabels System.IO.BinaryReader
width int
height int
return System

MyMNISTImage() public method

public MyMNISTImage ( byte data, byte label, int width = 28, int height = 28 ) : System
data byte
label byte
width int
height int
return System

ToBinary() public method

public ToBinary ( ) : void
return void