15 using namespace shark;
37 trainer.
train(network, trainingset);
43 return loss01(testset.
labels(),predictions);
59 double resultMaxIterations1 =
experiment(network, maxIterations,data,test);
61 double resultMaxIterations2 =
experiment(network, maxIterations,data,test);
63 double resultMaxIterations3 =
experiment(network, maxIterations,data,test);
66 double resultTrainingError =
experiment(network, trainingError,data,test);
73 double resultGeneralizationQuotient =
experiment(network, validatedLoss,data,test);
76 cout <<
"RESULTS: " << endl;
77 cout <<
"======== \n" << endl;
78 cout <<
"10 iterations : " << resultMaxIterations1 << endl;
79 cout <<
"100 iterations : " << resultMaxIterations2 << endl;
80 cout <<
"500 iterations : " << resultMaxIterations3 << endl;
81 cout <<
"training Error : " << resultTrainingError << endl;
82 cout <<
"generalization Quotient : " << resultGeneralizationQuotient << endl;