11 int main(
int argc,
char **argv){
14 cerr <<
"usage: " << argv[0] <<
" (filename)" << endl;
22 cerr <<
"unable to read data from file " << argv[1] << endl;
34 lda.
train(classifier,data);
37 double error = loss(test.
labels(),classifier(test.
inputs()));
40 cout <<
"RESULTS: " << endl;
41 cout <<
"========\n" << endl;
43 cout <<
"error rate: " << error << endl;