Package org.encog.ml.data.basic

Examples of org.encog.ml.data.basic.BasicMLDataPair


    data.add(mlP);
  }

  @Override
  public void add(MLData inputData, MLData idealData) {
    BasicMLDataPair mlP = new BasicMLDataPair(inputData, idealData);
    data.add(mlP);
  }
View Full Code Here


    for (int i = 0; i < this.dimension; i++) {
      d[i] = ContinousDistribution.randomGenerator.nextGaussian();
    }

    final double[] d2 = MatrixMath.multiply(this.covarianceL, d);
    return new BasicMLDataPair(new BasicMLData(EngineArray.add(d2,
        this.mean)));
  }
View Full Code Here

          break;
        }
      }
    }

    return new BasicMLDataPair(result);
  }
View Full Code Here

    for (int i = start; i < range; i++) {
      final BasicMLData input = generateInputNeuralData(i);
      final BasicMLData ideal = generateOutputNeuralData(i
          + this.inputWindowSize);
      final BasicMLDataPair pair = new BasicMLDataPair(input,
          ideal);
      super.add(pair);
    }
  }
View Full Code Here

      if (this.codec.getIdealSize() > 0) {
        b = new BasicMLData(ideal);
      }

      final MLDataPair pair = new BasicMLDataPair(a, b);
      pair.setSignificance(significance[0]);
      this.result.add(pair);

      currentRecord++;
      lastUpdate++;
      if (lastUpdate >= 10000) {
View Full Code Here

      for (int j = 0; j < idealCount; j++) {
        idealData.setData(j, rand.nextDouble(min, max));
      }

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

    }
    return result;
View Full Code Here

      for (int j = 0; j < idealCount; j++) {
        idealData.setData(j, rand.nextDouble(min, max));
      }

      final BasicMLDataPair pair = new BasicMLDataPair(inputData,
          idealData);
      training.add(pair);

    }
  }
View Full Code Here

    final BasicMLData input = new BasicMLData(
        this.indexableTraining.getInputSize());
    final BasicMLData ideal = new BasicMLData(
        this.indexableTraining.getIdealSize());
    this.pair = new BasicMLDataPair(input, ideal);
   
    this.hessian = h;
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.data.basic.BasicMLDataPair

Copyright © 2018 www.massapicom. 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.