Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //For initializing every weight in the current node
- for(int i = 0; i < HEIGHT; i++){
- for(int j = 0; j < WIDTH; j++){
- //initial weight is the product of the two
- //pixel values
- double initial_weight = training_image[image][row][col] * training_image[image][i][j];
- network->node[row][col].weight[i][j] += initial_weight;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement