Examples of TrainingData


Examples of io.prediction.examples.java.recommendations.tutorial1.TrainingData

      // create a new ArrayList because subList() returns view and not serialzable
      List<TrainingData.Rating> trainingRatings =
        new ArrayList<TrainingData.Rating>(ratings.subList(0, trainingEndIndex));
      List<TrainingData.Rating> testRatings = ratings.subList(trainingEndIndex, testEndIndex);
      TrainingData td = new TrainingData(trainingRatings);
      List<Tuple2<Query, Float>> qaList = prepareValidation(testRatings);

      data.add(new Tuple3<Object, TrainingData, Iterable<Tuple2<Query, Float>>>(
        null, td, qaList));
    }
View Full Code Here

Examples of org.neuroph.core.learning.TrainingData

  /**
   * Creates an instance of connection weight with random weight value in range [0..1]
   */
  public Weight() {
    this.value = Math.random() - 0.5d;
                this.trainingData = new TrainingData(2);
  }
View Full Code Here

Examples of org.neuroph.core.learning.TrainingData

   * @param value
   *            weight value
   */
  public Weight(double value) {
    this.value = value;
                 this.trainingData = new TrainingData(2);
  }
View Full Code Here

Examples of org.neuroph.core.learning.TrainingData

         * Initialize training data buffer to specified size
         * @param size size of the training buffer (number of variables used by
         * the learning rule)
         */
        public void initTrainingDataBuffer(int size) {
            this.trainingData = new TrainingData(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.