Package org.encog.ensemble

Examples of org.encog.ensemble.GenericEnsembleML.train()


      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

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.