org.encog.util.simple
Class TrainingSetUtil
java.lang.Object
org.encog.util.simple.TrainingSetUtil
public class TrainingSetUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrainingSetUtil
public TrainingSetUtil()
loadCSVTOMemory
public static MLDataSet loadCSVTOMemory(CSVFormat format,
String filename,
boolean headers,
int inputSize,
int idealSize)
- Load a CSV file into a memory dataset.
- Parameters:
format
- The CSV format to use.filename
- The filename to load.headers
- True if there is a header line.inputSize
- The input size. Input always comes first in a file.idealSize
- The ideal size, 0 for unsupervised.
- Returns:
- A NeuralDataSet that holds the contents of the CSV file.
trainingToArray
public static ObjectPair<double[][],double[][]> trainingToArray(MLDataSet training)
Copyright © 2014. All Rights Reserved.