22 cerr <<
"Unable to open file " << dataFile <<
" and/or " << labelFile <<
". Check paths!" << endl;
44 optimizer.
init(errorFunction);
45 for(
int i = 0; i != 100; ++i)
47 optimizer.
step(errorFunction);
56 double testError = loss.
eval(test.
labels(),predictions);
59 cout <<
"RESULTS: " << endl;
60 cout <<
"======== \n" << endl;
61 cout <<
"training error " << trainingError << endl;
62 cout <<
"test error: " << testError << endl;