org.encog.util.data
Class MNISTReader
- java.lang.Object
-
- org.encog.util.data.MNISTReader
-
public class MNISTReader extends java.lang.ObjectThis reads the MNIST dataset of handwritten digits into an Encog data set. The MNIST dataset is found at http://yann.lecun.com/exdb/mnist/. Adapted from a class by Gabe Johnson <johnsogg@cmu.edu>. https://code.google.com /p/pen-ui/source/browse/trunk/skrui/src/org/six11/skrui /charrec/MNISTReader.java?r=185
-
-
Constructor Summary
Constructors Constructor and Description MNISTReader(java.lang.String labelFilename, java.lang.String imageFilename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description MLDataSetgetData()intgetNumCols()intgetNumImages()intgetNumLabels()intgetNumRows()
-
-
-
Constructor Detail
-
MNISTReader
public MNISTReader(java.lang.String labelFilename, java.lang.String imageFilename)
-
-
Method Detail
-
getNumLabels
public int getNumLabels()
- Returns:
- the numLabels
-
getNumImages
public int getNumImages()
- Returns:
- the numImages
-
getNumRows
public int getNumRows()
- Returns:
- the numRows
-
getNumCols
public int getNumCols()
- Returns:
- the numCols
-
getData
public MLDataSet getData()
- Returns:
- the data
-
-
DMelt 3.0 © DataMelt by jWork.ORG