Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Neural Network prob: the Backpopagation algorithm

Neural Network prob: the Backpopagation algorithm

Scheduled Pinned Locked Moved IT & Infrastructure
helpsysadminalgorithmstutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Niklas Ulvinge
    wrote on last edited by
    #1

    I don't know where to post this but I think I got it right. How do I calculate the error of the a hidden node when I've calculated and made the adjustment of the outputlayer. I don't know how to do this. Please help me, please. If you want I could post all the classes to. This is just a part of the learing algorihtm. The main loop that's adding the data is before this, and the float answerOfData is refering to the expected output of each output node. public int BackpropagationLA3(float[] answerOfData) { this.CalcNet(); NeuralNetworkLayer outputLayer = this.Layers[this.Layers.Length]; float[] Erre = new float[outputLayer.neurons.Length]; //Erre = Te - O for (int i = 0; i < Erre.Length; i++) { Erre[i] = answerOfData[i] - outputLayer[i].output; } //Wij = Wij + alfa * aj * Errei * g'(ini) for (int i = 0; i < Erre.Length; i++) { for (int j = 0; j < outputLayer[0].weights.Length; j++) { outputLayer[i].weights[j] += alfa * outputLayer[i][j].Output * Erre[i] * Neuron.deriavateActivationFunc(outputLayer[i].Sum()); } } for (int l = Layers.Length-1; l > 1; l--) { //delatj = g'(inj) * Sigma i * Wij * deltai [red]//I'm stuck here[/red] Neuron.deriavateActivationFunc(outputLayer[i].Sum()); } return 0; Niklas Ulvinge aka IDK

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups