Hey, I want to create a neural Network structure by the code above. The problem: If i try fill the weights of a layer, by FillArray() it wont change anything (for simplification i have only shown the code for the first layer).
Have you any idea why and what could be done?
the output is alway the follwoing : (the first two layers with a strange number and the rest zeros, but actually nothing has changed since the first lopp prints the same)
Even though your for loop goes from i=0 to Layers-1, your if condition (highlighted in green) limits execution to i==0 alone. So, end up only NeuronenArray[0] is filled with 10, weight_L1 is resized to 10, but its values not initialized (hence giving you "strange values" which can be anything, including 0).
for (int i=0;i<Layers;i++) { //--- place weights into the array if (i+1 == 1){NeuronenArray[i] = Neuronen_L1; ArrayResize(weight_L1,NeuronenArray[0]); Print(weight_L1[0]);Print(weight_L1[1]);Print(weight_L1[2]);Print(weight_L1[3]);Print(weight_L1[4]);} // print-> so that you can see }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey, I want to create a neural Network structure by the code above. The problem: If i try fill the weights of a layer, by FillArray() it wont change anything (for simplification i have only shown the code for the first layer).
Have you any idea why and what could be done?
the output is alway the follwoing : (the first two layers with a strange number and the rest zeros, but actually nothing has changed since the first lopp prints the same)