Displaying Weights

Help
Lone Wolf
2012-04-24
2015-02-15
  • Lone Wolf

    Lone Wolf - 2012-04-24

    I have a multilayer perceptron network using the Neuroph framework, and I'm wondering how to retrieve the weights for displaying and saving? Thanks!

     
  • Zoran Sevarac

    Zoran Sevarac - 2012-04-25

    Do something like

    for (Layer layer : nnet.getLayers()) {
      for (Neuron neuron : layer.getNeurons()) {
        for (Connection conn : neuron.getInputConnections())
           System.out.println(conn.getWeight().getValue())
      }  
    }
    
     
  • Lone Wolf

    Lone Wolf - 2012-04-25

    Thanks!

     
  • Roman

    Roman - 2015-02-15

    You can follow any responses in more detail, I do not know very well the java.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks