Package me.yixqiao.jlearn.datasets
Class MNISTDigits
- java.lang.Object
-
- me.yixqiao.jlearn.datasets.MNISTDigits
-
public final class MNISTDigits extends java.lang.Object
Class for the MNIST digits dataset.
-
-
Constructor Summary
Constructors Constructor Description MNISTDigits()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DatasetTT
load()
Load the data.static DatasetTT
load(java.lang.String directoryPath)
Load the data from a directory.static void
writeDataset()
Write the data from csv files to a Java object dataset.
-
-
-
Method Detail
-
load
public static DatasetTT load()
Load the data.- Returns:
- the dataset
-
load
public static DatasetTT load(java.lang.String directoryPath)
Load the data from a directory.The directory must contain two files: test.dat and train.dat
- Parameters:
directoryPath
- path to the data- Returns:
- the dataset
-
writeDataset
public static void writeDataset()
Write the data from csv files to a Java object dataset.
-
-