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