![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
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< ProgressArgs > | OnProgress |
| The OnProgress event fires during the creation process to show the progress. More... | |
| EventHandler< ProgressArgs > | OnError |
| The OnError event fires when an error occurs. More... | |
The MnistDataLoader is used to extrac the MNIST dataset to disk and load the data into the training proces.
Definition at line 20 of file MnistDataLoaderLite.cs.
| MyCaffe.data.MnistDataLoaderLite.MnistDataLoaderLite | ( | string | strDataPath, |
| bool | bEnableTrace = false |
||
| ) |
The constructor.
| strDataPath | Specifies the location of the data files. |
| bEnableTrace | Optionally, 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.
| void MyCaffe.data.MnistDataLoaderLite.ExtractFiles | ( | string | strDstPath | ) |
Extract the .gz files, expanding them to .bin files.
| strDstPath | Specifies the path containing the four MNIST data files. |
Definition at line 119 of file MnistDataLoaderLite.cs.
| 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
| rgTrainingData | Returns the training data. |
| rgTestingData | Returns the testing data. |
Definition at line 155 of file MnistDataLoaderLite.cs.
|
get |
Return the image channel count (should = 1 for black and white images).
Definition at line 94 of file MnistDataLoaderLite.cs.
|
get |
Return the image height.
Definition at line 102 of file MnistDataLoaderLite.cs.
|
get |
Returns the test images bin filename.
Definition at line 62 of file MnistDataLoaderLite.cs.
|
get |
Returns the test labels bin filename.
Definition at line 70 of file MnistDataLoaderLite.cs.
|
get |
Returns the train images bin filename.
Definition at line 78 of file MnistDataLoaderLite.cs.
|
get |
Returns the train labels bin filename.
Definition at line 86 of file MnistDataLoaderLite.cs.
|
get |
Return the image with.
Definition at line 110 of file MnistDataLoaderLite.cs.
| EventHandler<ProgressArgs> MyCaffe.data.MnistDataLoaderLite.OnError |
The OnError event fires when an error occurs.
Definition at line 39 of file MnistDataLoaderLite.cs.
| 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.