Package org.encog.ensemble

Examples of org.encog.ensemble.GenericEnsembleML


    for (int k = 0; k < dss; k++)
      D.add(1.0 / (float) dss);
    for (int i = 0; i < T; i++) {
      dataSetFactory.setSignificance(D);
      MLDataSet thisSet = dataSetFactory.getNewDataSet();
      GenericEnsembleML newML = new GenericEnsembleML(mlFactory.createML(dataSetFactory.getInputData().getInputSize(), dataSetFactory.getInputData().getIdealSize()),mlFactory.getLabel());
      do {
        mlFactory.reInit(newML.getMl());
        MLTrain train = trainFactory.getTraining(newML.getMl(), thisSet);
        newML.setTraining(train);
        newML.train(targetAccuracy,verbose);
      } while (newML.getError(testset) > selectionError);
      double newWeight = getWeightedError(newML,thisSet);
      members.add(newML);
      weights.add(newWeight);
      D = updateD(newML,thisSet,D);
    }
View Full Code Here


      System.err.println("Trying to train a null classifier in MetaClassifier");
  }

  @Override
  public void setTrainingSet(EnsembleDataSet trainingSet) {
    classifier = new GenericEnsembleML(mlFact.createML(trainingSet.getInputSize(), trainingSet.getIdealSize()),mlFact.getLabel());
    classifier.setTraining(etFact.getTraining(classifier.getMl(), trainingSet));
    classifier.setTrainingSet(trainingSet);
  }
View Full Code Here

TOP

Related Classes of org.encog.ensemble.GenericEnsembleML

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.