CSVNeuralDataSet
org.encog.ml.data.specific

Class CSVNeuralDataSet

  • All Implemented Interfaces:
    Serializable, Iterable<MLDataPair>, MLDataSet


    public class CSVNeuralDataSetextends BasicMLDataSet
    An implementation of the NeuralDataSet interface designed to provide a CSV file to the neural network. This implementation uses the BasicNeuralData to hold the data being read. This class has no ability to write CSV files. The columns of the CSV file will specify both the input and ideal columns. Because this class loads the CSV file to memory, it is quite fast, once the data has been loaded.
    See Also:
    Serialized Form
    • Constructor Detail

      • CSVNeuralDataSet

        public CSVNeuralDataSet(String theFilename,                int theInputSize,                int theIdealSize,                boolean theHeaders)
        Construct this data set using a comma as a delimiter.
        Parameters:
        theFilename - The CSV filename to read.
        theInputSize - The number of columns that make up the input set. *
        theIdealSize - The number of columns that make up the ideal set.
        theHeaders - True if headers are present on the first line.
      • CSVNeuralDataSet

        public CSVNeuralDataSet(String theFilename,                int theInputSize,                int theIdealSize,                boolean theHeaders,                CSVFormat theFormat,                boolean significance)
        Construct this data set using a comma as a delimiter.
        Parameters:
        theFilename - The CSV filename to read.
        theInputSize - The number of columns that make up the input set. *
        theIdealSize - The number of columns that make up the ideal set.
        theHeaders - True if headers are present on the first line.
        theFormat - What CSV format to use.
        significance - True, if there is a significance column.
    • Method Detail

      • getFilename

        public String getFilename()
        Returns:
        the filename
      • getFormat

        public CSVFormat getFormat()
        Returns:
        the delimiter

SCaVis 1.7 © jWork.org