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