Examples of MLDataPair


Examples of org.encog.ml.data.MLDataPair

      if (!iterator.hasNext()) {
        return false;
      }
      final MLDataFieldHolder holder = this.dataSetIteratorMap
          .get(iterator);
      final MLDataPair pair = iterator.next();
      holder.setPair(pair);
    }

    // see if any of the arrays want to stop
    for (final InputField field : this.inputFields) {
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

   *            The size of the ideal data.
   * @return A new data pair object.
   */
  public static MLDataPair createPair(final int inputSize,
      final int idealSize) {
    MLDataPair result;

    if (idealSize > 0) {
      result = new BasicMLDataPair(new BasicMLData(inputSize),
          new BasicMLData(idealSize));
    } else {
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

   * {@inheritDoc}
   */
  @Override
  public void add(final MLData inputData, final MLData idealData) {

    final MLDataPair pair = new BasicMLDataPair(inputData, idealData);
    this.currentSequence.add(pair);
  }
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

    return (int)getRecordCount();
  }

  @Override
  public MLDataPair get(int index) {
    MLDataPair result = BasicMLDataPair.createPair(getInputSize(), getIdealSize());
    this.getRecord(index, result);
    return result;
  }
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

        return null;
      }
     
      MLDataSet target = sequences.get(this.currentSequenceIndex);
     
      MLDataPair result = ((BasicMLDataSet)target).getData().get(this.currentIndex);
      this.currentIndex++;
      if( this.currentIndex>=target.getRecordCount()) {
        this.currentIndex = 0;
        this.currentSequenceIndex++;
      }
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

      // handle predict window
      for (int j = 0; j < this.predictWindow; j++) {
        idealData.setData(j, data[index++]);
      }

      final MLDataPair pair = new BasicMLDataPair(inputData,
          idealData);
      result.add(pair);
    }

    return result;
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

     * @return MLDatapair containing data.
     */
    public MLDataPair processToPair(double[] data)
    {

        MLDataPair pair = null;
        int totalWindowSize = inputWindow + predictWindow;
        int stopPoint = data.length - totalWindowSize;

        for (int i = 0; i < stopPoint; i++)
        {
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

    BasicMLData input = new BasicMLData(
        MatrixMLDataSet.this.calculatedInputSize * calculateLagCount());
    BasicMLData ideal = new BasicMLData(
        MatrixMLDataSet.this.calculatedIdealSize * calculateLeadCount());
    MLDataPair pair = new BasicMLDataPair(input, ideal);

    MatrixMLDataSet.this.getRecord(index, pair);

    return pair;
  }
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

   * {@inheritDoc}
   */
  @Override
  public void add(final MLData inputData, final MLData idealData) {

    final MLDataPair pair = new BasicMLDataPair(inputData, idealData);
    this.data.add(pair);
  }
View Full Code Here

Examples of org.encog.ml.data.MLDataPair

  @Override
  public int getIdealSize() {
    if (this.data.isEmpty()) {
      return 0;
    }
    final MLDataPair first = this.data.get(0);
    if (first.getIdeal() == null) {
      return 0;
    }

    return first.getIdeal().size();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.