Package org.neuroph.nnet.comp

Examples of org.neuroph.nnet.comp.CompetitiveNeuron


   * Adjusts weights for the winning neuron
   */
  protected void adjustWeights() {
    // find active neuron in output layer
    // TODO : change idx, in general case not 1
    CompetitiveNeuron winningNeuron = ((CompetitiveLayer) neuralNetwork
        .getLayerAt(1)).getWinner();

    Vector<Connection> inputConnections = winningNeuron
        .getConnectionsFromOtherLayers();

    for(Connection connection : inputConnections) {
      double weight = connection.getWeight().getValue();
      double input = connection.getInput();
View Full Code Here

TOP

Related Classes of org.neuroph.nnet.comp.CompetitiveNeuron

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.