45 optimizer.
init(errorFunction);
46 for(
int i = 0; i != 100; ++i)
48 optimizer.
step(errorFunction);
54 double trainingError = optimizer.
solution().value;
58 double testError = loss.
eval(test.
labels(),predictions);
61 cout <<
"RESULTS: " << endl;
62 cout <<
"======== \n" << endl;
63 cout <<
"training error " << trainingError << endl;
64 cout <<
"test error: " << testError << endl;