MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.data.MnistDataLoaderLite Class Reference

The MnistDataLoader is used to extrac the MNIST dataset to disk and load the data into the training proces. More...

Public Member Functions

 MnistDataLoaderLite (string strDataPath, bool bEnableTrace=false)
 The constructor. More...
 
void ExtractFiles (string strDstPath)
 Extract the .gz files, expanding them to .bin files. More...
 
void ExtractImages (out List< Tuple< byte[], int > > rgTrainingData, out List< Tuple< byte[], int > > rgTestingData)
 Extract the images from the .bin files and save to disk More...
 

Properties

string TestImagesBinFileName [get]
 Returns the test images bin filename. More...
 
string TestLabelsBinFileName [get]
 Returns the test labels bin filename. More...
 
string TrainImagesBinFileName [get]
 Returns the train images bin filename. More...
 
string TrainLabelsBinFileName [get]
 Returns the train labels bin filename. More...
 
int Channels [get]
 Return the image channel count (should = 1 for black and white images). More...
 
int Height [get]
 Return the image height. More...
 
int Width [get]
 Return the image with. More...
 

Events

EventHandler< ProgressArgsOnProgress
 The OnProgress event fires during the creation process to show the progress. More...
 
EventHandler< ProgressArgsOnError
 The OnError event fires when an error occurs. More...
 

Detailed Description

The MnistDataLoader is used to extrac the MNIST dataset to disk and load the data into the training proces.

See also
MNIST Dataset

Definition at line 20 of file MnistDataLoaderLite.cs.

Constructor & Destructor Documentation

◆ MnistDataLoaderLite()

MyCaffe.data.MnistDataLoaderLite.MnistDataLoaderLite ( string  strDataPath,
bool  bEnableTrace = false 
)

The constructor.

Parameters
strDataPathSpecifies the location of the data files.
bEnableTraceOptionally, specifies whether or not to enable sending output to the Trace (default = false).

Four files make up the MNIST dataset that can be downloaded from http://yann.lecun.com/exdb/mnist/ t10k-images-idx3-ubyte.gz ~ testing images t10k-labels-idx1-ubyte.gz ~ testing image labels train-images-idx3-ubyte.gz ~ training images train-labels-idx1-ubyte.gz ~ training image labels

Definition at line 53 of file MnistDataLoaderLite.cs.

Member Function Documentation

◆ ExtractFiles()

void MyCaffe.data.MnistDataLoaderLite.ExtractFiles ( string  strDstPath)

Extract the .gz files, expanding them to .bin files.

Parameters
strDstPathSpecifies the path containing the four MNIST data files.

Definition at line 119 of file MnistDataLoaderLite.cs.

◆ ExtractImages()

void MyCaffe.data.MnistDataLoaderLite.ExtractImages ( out List< Tuple< byte[], int > >  rgTrainingData,
out List< Tuple< byte[], int > >  rgTestingData 
)

Extract the images from the .bin files and save to disk

Parameters
rgTrainingDataReturns the training data.
rgTestingDataReturns the testing data.

Definition at line 155 of file MnistDataLoaderLite.cs.

Property Documentation

◆ Channels

int MyCaffe.data.MnistDataLoaderLite.Channels
get

Return the image channel count (should = 1 for black and white images).

Definition at line 94 of file MnistDataLoaderLite.cs.

◆ Height

int MyCaffe.data.MnistDataLoaderLite.Height
get

Return the image height.

Definition at line 102 of file MnistDataLoaderLite.cs.

◆ TestImagesBinFileName

string MyCaffe.data.MnistDataLoaderLite.TestImagesBinFileName
get

Returns the test images bin filename.

Definition at line 62 of file MnistDataLoaderLite.cs.

◆ TestLabelsBinFileName

string MyCaffe.data.MnistDataLoaderLite.TestLabelsBinFileName
get

Returns the test labels bin filename.

Definition at line 70 of file MnistDataLoaderLite.cs.

◆ TrainImagesBinFileName

string MyCaffe.data.MnistDataLoaderLite.TrainImagesBinFileName
get

Returns the train images bin filename.

Definition at line 78 of file MnistDataLoaderLite.cs.

◆ TrainLabelsBinFileName

string MyCaffe.data.MnistDataLoaderLite.TrainLabelsBinFileName
get

Returns the train labels bin filename.

Definition at line 86 of file MnistDataLoaderLite.cs.

◆ Width

int MyCaffe.data.MnistDataLoaderLite.Width
get

Return the image with.

Definition at line 110 of file MnistDataLoaderLite.cs.

Event Documentation

◆ OnError

EventHandler<ProgressArgs> MyCaffe.data.MnistDataLoaderLite.OnError

The OnError event fires when an error occurs.

Definition at line 39 of file MnistDataLoaderLite.cs.

◆ OnProgress

EventHandler<ProgressArgs> MyCaffe.data.MnistDataLoaderLite.OnProgress

The OnProgress event fires during the creation process to show the progress.

Definition at line 35 of file MnistDataLoaderLite.cs.


The documentation for this class was generated from the following file: