Package org.encog.ensemble.aggregator

Examples of org.encog.ensemble.aggregator.MajorityVoting


    EnsembleTrainFactory trainingStrategy = new ResilientPropagationFactory();
    MultiLayerPerceptronFactory mlpFactory = new MultiLayerPerceptronFactory();
    ArrayList<Integer> middleLayers = new ArrayList<Integer>();
    middleLayers.add(4);
    mlpFactory.setParameters(middleLayers, new ActivationSigmoid());
    MajorityVoting mv = new MajorityVoting();
    Bagging testBagging = new Bagging(numSplits, dataSetSize, mlpFactory, trainingStrategy, mv);
    testBagging.setTrainingData(trainingData);
    testBagging.train(1E-2,1E-2,(EnsembleDataSet) trainingData);
    for (int j = 0; j < trainingData.size(); j++) {
      MLData input = trainingData.get(j).getInput();
View Full Code Here

TOP

Related Classes of org.encog.ensemble.aggregator.MajorityVoting

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.