MLDataSet
org.encog.ml.data

Interface MLDataSet

    • Method Detail

      • getIdealSize

        int getIdealSize()
        Returns:
        The size of the input data.
      • getInputSize

        int getInputSize()
        Returns:
        The size of the input data.
      • isSupervised

        boolean isSupervised()
        Returns:
        True if this is a supervised training set.
      • getRecordCount

        long getRecordCount()
        Determine the total number of records in the set.
        Returns:
        The total number of records in the set.
      • getRecord

        void getRecord(long index,             MLDataPair pair)
        Read an individual record, specified by index, in random order.
        Parameters:
        index - The index to read.
        pair - The pair that the record will be copied into.
      • openAdditional

        MLDataSet openAdditional()
        Opens an additional instance of this dataset.
        Returns:
        The new instance.
      • add

        void add(MLData data1)
        Add a object to the dataset. This is used with unsupervised training, as no ideal output is provided. Note: not all implemenations support the add methods.
        Parameters:
        data1 - The data item to be added.
      • add

        void add(MLData inputData,       MLData idealData)
        Add a set of input and ideal data to the dataset. This is used with supervised training, as ideal output is provided. Note: not all implementations support the add methods.
        Parameters:
        inputData - Input data.
        idealData - Ideal data.
      • add

        void add(MLDataPair inputData)
        Add a an object to the dataset. This is used with unsupervised training, as no ideal output is provided. Note: not all implementations support the add methods.
        Parameters:
        inputData - A MLDataPair object that contains both input and ideal data.
      • close

        void close()
        Close this datasource and release any resources obtained by it, including any iterators created.
      • size

        int size()

SCaVis 1.8 © jWork.org