11int 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);
38 double error = loss(test.
labels(),predictions);
41 cout <<
"RESULTS: " << endl;
42 cout <<
"========\n" << endl;
44 cout <<
"error rate: " << error << endl;