I have written some programs in c lang yet but today I get confused
with output i get.
I have function educate(..) which i call in main program this way:
J = educate(no_laye rs, no_neurons, input, output, lay, weights, 0.1,0);
printf("J= %f\n",J);
In the educate function i count J and i return it (but before I return
it I output it with printf):
float educate (int no_layers, int no_neurons[], float input[], float
output[], float* lay[], float* weights[], float gama, int debug) {
....
printf("J= %f\n",J);
return(J);
}
This is what i get:
J= 0.304447
J= 1050402944.0000 00
Is there any syntax prob? Why the values arent the same? :(
with output i get.
I have function educate(..) which i call in main program this way:
J = educate(no_laye rs, no_neurons, input, output, lay, weights, 0.1,0);
printf("J= %f\n",J);
In the educate function i count J and i return it (but before I return
it I output it with printf):
float educate (int no_layers, int no_neurons[], float input[], float
output[], float* lay[], float* weights[], float gama, int debug) {
....
printf("J= %f\n",J);
return(J);
}
This is what i get:
J= 0.304447
J= 1050402944.0000 00
Is there any syntax prob? Why the values arent the same? :(
Comment