-
//this was the bad code
-
-
for(i = 0;i < SIZE; i++) {
-
-
for(;j < INPUTS; j++) {
-
neurons[i].links[j]->weight += e[i] * L * neurons[i].links[j]->inval;
-
}
-
}
-
-
-
-
-
//this is what it should be
-
for(i = 0;i < SIZE; i++) {
-
-
for(j = 0;j < INPUTS; j++) {
-
neurons[i].links[j]->weight += e[i] * L * neurons[i].links[j]->inval;
-
}
-
}
Posted by Anonymous Mon 15th Jan 2007 20:31 - Syntax is None/text - 26 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
PermaLink to this entry https://pastebin.co.uk/8777
Posted by Anonymous Mon 15th Jan 2007 20:31 - Syntax is None/text - 26 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers