me corto los huevos
This commit is contained in:
parent
8f776e61b2
commit
77203ff4a9
8
neural.c
8
neural.c
@ -384,12 +384,12 @@ int main(){
|
|||||||
if(testing%300 == 0){
|
if(testing%300 == 0){
|
||||||
printf("Tested %d so far\n", testing+1);
|
printf("Tested %d so far\n", testing+1);
|
||||||
}
|
}
|
||||||
printImage(im);
|
/*printImage(im);
|
||||||
printf("Expected:\n");
|
printf("Expected:\n");
|
||||||
printMatrix(expectedOutput);
|
printMatrix(expectedOutput);
|
||||||
printf("Got:\n");
|
printf("Got:\n");
|
||||||
printMatrix(output);
|
printMatrix(output);
|
||||||
printf("Max output: %d\n", maxOutputs(output));
|
printf("Max output: %d\n", maxOutputs(output));*/
|
||||||
if(maxOutputs(output) == im->label){
|
if(maxOutputs(output) == im->label){
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
@ -397,8 +397,8 @@ int main(){
|
|||||||
output = NULL;
|
output = NULL;
|
||||||
freeImage(&im);
|
freeImage(&im);
|
||||||
++testing;
|
++testing;
|
||||||
if(testing == 10)
|
//if(testing == 10)
|
||||||
break;
|
// break;
|
||||||
}
|
}
|
||||||
fclose(testFP);
|
fclose(testFP);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user