source: trunk/test/feature_selection_test.cc @ 605

Last change on this file since 605 was 605, checked in by Peter, 16 years ago

simple test for FeatureSelector?

File size: 633 bytes
Line 
1// $Id$
2
3#include <c++_tools/classifier/FeatureSelectorIR.h>
4#include <c++_tools/statistics/ROC.h>
5
6#include <fstream>
7#include <iostream>
8#include <string>
9
10using namespace theplu;
11
12int main(const int argc,const char* argv[])
13{ 
14  std::ostream* error;
15  if (argc>1 && argv[1]==std::string("-v"))
16    error = &std::cerr;
17  else {
18    error = new std::ofstream("/dev/null");
19    if (argc>1)
20      std::cout << "feature_selection -v : for printing extra information\n";
21  }
22  *error << "testing ferature_selection" << std::endl;
23  bool ok = true;
24
25  statistics::ROC roc;
26  classifier::FeatureSelectorIR f(roc, 12);
27
28  if (ok)
29    return 0;
30  return -1;
31}
Note: See TracBrowser for help on using the repository browser.