org.encog.util.simple
Class TrainingSetUtil

java.lang.Object
  extended by org.encog.util.simple.TrainingSetUtil

public class TrainingSetUtil
extends Object


Constructor Summary
TrainingSetUtil()
           
 
Method Summary
static NeuralDataSet loadCSVTOMemory(CSVFormat format, String filename, boolean headers, int inputSize, int idealSize)
          Load a CSV file into a memory dataset.
static int trainingSetSize(NeuralDataSet training)
           
static ObjectPair<double[][],double[][]> trainingToArray(NeuralDataSet training)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrainingSetUtil

public TrainingSetUtil()
Method Detail

loadCSVTOMemory

public static NeuralDataSet 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(NeuralDataSet training)

trainingSetSize

public static int trainingSetSize(NeuralDataSet training)


Copyright © 2011. All Rights Reserved.