Go to the documentation of this file. 17 int main(
int argc,
char** argv)
20 unsigned int ell = 500;
21 unsigned int tests = 10000;
38 cout <<
"Algorithm: " << trainer.
name() <<
"\ntraining ..." << flush;
39 trainer.
train(model, training);
47 double train_error = loss.
eval(training.
labels(), output);
48 cout <<
"training error:\t" << train_error << endl;
49 output = model(test.
inputs());
50 double test_error = loss.
eval(test.
labels(), output);
51 cout <<
"test error:\t" << test_error << endl;