9 int main(
int argc,
char** argv)
12 unsigned int ell = 500;
13 unsigned int tests = 10000;
29 cout <<
"Algorithm: " << trainer.
name() <<
"\ntraining ..." << flush;
30 trainer.
train(kc, training);
38 double train_error = loss.
eval(training.
labels(), output);
39 cout <<
"training error:\t" << train_error << endl;
40 output = kc(test.
inputs());
41 double test_error = loss.
eval(test.
labels(), output);
42 cout <<
"test error:\t" << test_error << endl;
55 trainer.
train(kc, training);