MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MnistDataParameters.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace MyCaffe.data
8{
13 {
14 string m_strTrainImagesFile;
15 string m_strTrainLabelsFile;
16 string m_strTestImagesFile;
17 string m_strTestLabelsFile;
18 bool m_bExportToFileOnly;
19 string m_strExportPath;
20
30 public MnistDataParameters(string strTrainImages, string strTrainLabels, string strTestImages, string strTestLabels, bool bExportToFileOnly, string strExportPath)
31 {
32 m_strTrainImagesFile = strTrainImages;
33 m_strTrainLabelsFile = strTrainLabels;
34 m_strTestImagesFile = strTestImages;
35 m_strTestLabelsFile = strTestLabels;
36 m_bExportToFileOnly = bExportToFileOnly;
37 m_strExportPath = strExportPath;
38 }
39
43 public string TrainImagesFile
44 {
45 get { return m_strTrainImagesFile; }
46 }
47
51 public string TrainLabelsFile
52 {
53 get { return m_strTrainLabelsFile; }
54 }
55
59 public string TestImagesFile
60 {
61 get { return m_strTestImagesFile; }
62 }
63
67 public string TestLabelsFile
68 {
69 get { return m_strTestLabelsFile; }
70 }
71
75 public string ExportPath
76 {
77 get { return m_strExportPath; }
78 }
79
83 public bool ExportToFile
84 {
85 get { return m_bExportToFileOnly; }
86 }
87 }
88}
Contains the dataset parameters used to create the MNIST dataset.
MnistDataParameters(string strTrainImages, string strTrainLabels, string strTestImages, string strTestLabels, bool bExportToFileOnly, string strExportPath)
The constructor.
string TestLabelsFile
Specifies the testing label file 't10k-labels-idx1-ubyte.gz'.
string TrainImagesFile
Specifies the training image file 'train-images-idx3-ubyte.gz'.
string TrainLabelsFile
Specifies the training label file 'train-labels-idx1.ubyte.gz'.
string ExportPath
Specifies where to export the files when 'ExportToFile' = true.
string TestImagesFile
Specifies the testing image file 't10k-images-idx3-ubyte.gz'.
bool ExportToFile
Specifies to export the images to a folder.
The MyCaffe.data namespace contains dataset creators used to create common testing datasets such as M...
Definition: BinaryFile.cs:16