Package org.encog.neural.networks

Examples of org.encog.neural.networks.BasicNetwork.reset()


    network.addLayer(new BasicLayer(new ActivationSigmoid(), true,
        HIDDEN_COUNT));
    network.addLayer(new BasicLayer(new ActivationSigmoid(), false,
        output[0].length));
    network.getStructure().finalizeStructure();
    network.reset();

    MLDataSet trainingSet = new BasicMLDataSet(input, output);

    // train the neural network
    MLTrain train = new Backpropagation(network, trainingSet, 0.7, 0.7);
View Full Code Here


    network.addLayer(new BasicLayer(Constants.INPUT_NEURON_COUNT));
    network.addLayer(new BasicLayer(60));
    //network.addLayer(new BasicLayer(30));
    network.addLayer(new BasicLayer(Constants.OUTPUT_NEURON_COUNT));
    network.getStructure().finalizeStructure();
    network.reset();
   
    NeuralMouse mouse = new NeuralMouse(network,maze);
    return mouse;
  }
 
View Full Code Here

    BasicNetwork network = new BasicNetwork();
    network.addLayer(new BasicLayer(WINDOW_SIZE));
    network.addLayer(new BasicLayer(10));
    network.addLayer(new BasicLayer(1));
    network.getStructure().finalizeStructure();
    network.reset();
    return network;
  }

  public void train(BasicNetwork network, MLDataSet training) {
    final FoldedDataSet folded = new FoldedDataSet(training);
View Full Code Here

    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,1));
    network.getStructure().finalizeStructure();
    network.reset();

    // create training data
    MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);
   
    // train the neural network
View Full Code Here

    final BasicNetwork network = new BasicNetwork();
    network.addLayer(new BasicLayer(MultiBench.INPUT_COUNT));
    network.addLayer(new BasicLayer(MultiBench.HIDDEN_COUNT));
    network.addLayer(new BasicLayer(MultiBench.OUTPUT_COUNT));
    network.getStructure().finalizeStructure();
    network.reset();
   
    final MLDataSet training = RandomTrainingFactory.generate(1000,50000,
        INPUT_COUNT, OUTPUT_COUNT, -1, 1);
   
    ResilientPropagation rprop = new ResilientPropagation(network,training);
View Full Code Here

    BasicNetwork network = new BasicNetwork();
    network.addLayer(new BasicLayer(2));
    network.addLayer(new BasicLayer(2));
    network.addLayer(new BasicLayer(1));
    network.getStructure().finalizeStructure();
    network.reset();

    MLDataSet trainingSet = new BasicMLDataSet(XOR_INPUT, XOR_IDEAL);

    // train the neural network
    final MLTrain train = new ResilientPropagation(network, trainingSet);
View Full Code Here

public class TestClone extends TestCase {

  public void testClone() throws Throwable
  {
    BasicNetwork source = XOR.createThreeLayerNet();
    source.reset();
   
    BasicNetwork target = (BasicNetwork)source.clone();
   
    TestCase.assertTrue(target.equals(source));
  }
View Full Code Here

    pattern.setInputNeurons(3);
    pattern.addHiddenLayer(50);
    pattern.setOutputNeurons(1);
    pattern.setActivationFunction(new ActivationTANH());
    BasicNetwork network = (BasicNetwork)pattern.generate();
    network.reset();
    return network;
  }
 
  public static void main(String args[])
  {
View Full Code Here

    final BasicNetwork network = new BasicNetwork();
    network.addLayer(new BasicLayer(null, true, 2));
    network.addLayer(new BasicLayer(new ActivationSigmoidPosNeg(), true, 4));
    network.addLayer(new BasicLayer(new ActivationSigmoidPosNeg(), true, 1));
    network.getStructure().finalizeStructure();
    network.reset();

    final MLDataSet trainingSet = new BasicMLDataSet(
        CustomActivation.XOR_INPUT, CustomActivation.XOR_IDEAL);

   
View Full Code Here

      }
    }

    result.getStructure().finalizeStructure();
    result.reset();

    return result;
  }

}
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.