Package org.encog.ml.data.versatile.division

Examples of org.encog.ml.data.versatile.division.DataDivision


   * @param seed The seed for random generation.
   */
  public void holdBackValidation(double validationPercent, boolean shuffle,
      int seed) {
    List<DataDivision> dataDivisionList = new ArrayList<DataDivision>();
    dataDivisionList.add(new DataDivision(1.0 - validationPercent));// Training
    dataDivisionList.add(new DataDivision(validationPercent));// Validation
    this.dataset.divide(dataDivisionList, shuffle,
        new MersenneTwisterGenerateRandom(seed));
    this.trainingDataset = dataDivisionList.get(0).getDataset();
    this.validationDataset = dataDivisionList.get(1).getDataset();
  }
View Full Code Here

TOP

Related Classes of org.encog.ml.data.versatile.division.DataDivision

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.