Package org.encog.ensemble.ml.mlp.factory

Examples of org.encog.ensemble.ml.mlp.factory.MultiLayerPerceptronFactory


    XOR.testXORDataSet(trainingData);
    trainingData = new EnsembleDataSet(trainingData);
    assertEquals(1,trainingData.getIdealSize());
    assertEquals(2,trainingData.getInputSize());
    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++) {
View Full Code Here

TOP

Related Classes of org.encog.ensemble.ml.mlp.factory.MultiLayerPerceptronFactory

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.