Package org.encog.engine.network.activation

Examples of org.encog.engine.network.activation.ActivationSigmoid


    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


  {
    // random matrix data.  However, it provides a constant starting point
    // for the unit tests.   
    BasicNetwork network = new BasicNetwork();
    network.addLayer(new BasicLayer(null,true,2));
    network.addLayer(new BasicLayer(new ActivationSigmoid(),true,4));
    network.addLayer(new BasicLayer(new ActivationSigmoid(),false,1));
    network.getStructure().finalizeStructure();
   
    (new ConsistentRandomizer(-1,1)).randomize(network);
   
    return network;
View Full Code Here

        // random matrix data.  However, it provides a constant starting point
        // for the unit tests.
       
        BasicNetwork network = new BasicNetwork();
        network.addLayer(new BasicLayer(null,true,2));
        network.addLayer(new BasicLayer(new ActivationSigmoid(),true,3));
        network.addLayer(new BasicLayer(new ActivationSigmoid(),false,3));
        network.addLayer(new BasicLayer(null,false,1));
        network.getStructure().finalizeStructure();
        (new NguyenWidrowRandomizer()).randomize( network );
       
        return network;
View Full Code Here

    FreeformNetwork network = new FreeformNetwork();
    FreeformLayer inputLayer = network.createInputLayer(2);
    FreeformLayer hiddenLayer1 = network.createLayer(3);
    FreeformLayer outputLayer = network.createOutputLayer(1);
   
    network.connectLayers(inputLayer, hiddenLayer1, new ActivationSigmoid(), 1.0, false);
    network.connectLayers(hiddenLayer1, outputLayer, new ActivationSigmoid(), 1.0, false);
   
    network.reset(1000);
    return network;
  }
View Full Code Here

TOP

Related Classes of org.encog.engine.network.activation.ActivationSigmoid

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.