Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.util.simple
Class TrainingSetUtil

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

    public class TrainingSetUtil

extends Object

Constructor Summary
`TrainingSetUtil()`

Method Summary
`static MLDataSet` | `loadCSVTOMemory(CSVFormat format, String filename, boolean headers, int inputSize, int idealSize)` Load a CSV file into a memory dataset.
`static ObjectPair<double[][],double[][]>` | `trainingToArray(MLDataSet 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 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.