Posted by Anonymous Mon 15th Jan 2007 20:31 - Syntax is None/text - 26 views
Download | New Post | Modify | Hide line numbers
  1. //this was the bad code
  2.  
  3. for(i = 0;i < SIZE; i++) {
  4.            
  5.             for(;j < INPUTS; j++) {               
  6.                 neurons[i].links[j]->weight += e[i] * L * neurons[i].links[j]->inval;
  7.             }
  8.         }   
  9.  
  10.  
  11.  
  12.  
  13. //this is what it should be
  14. for(i = 0;i < SIZE; i++) {
  15.            
  16.             for(j = 0;j < INPUTS; j++) {               
  17.                 neurons[i].links[j]->weight += e[i] * L * neurons[i].links[j]->inval;
  18.             }
  19.         }   

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