ModErn Text Analysis
META Enumerates Textual Applications
classifier_test.h
Go to the documentation of this file.
1 
10 #ifndef META_CLASSIFIER_TEST_H_
11 #define META_CLASSIFIER_TEST_H_
12 
13 #include <fstream>
14 #include <iostream>
15 #include "test/unit_test.h"
17 #include "classify/classifier/all.h"
18 #include "classify/kernel/all.h"
19 #include "caching/all.h"
20 #include "index/ranker/all.h"
21 
22 namespace meta
23 {
24 namespace testing
25 {
32 template <class Index, class Classifier>
33 void check_cv(Index& idx, Classifier& c, double min_accuracy);
34 
41 template <class Index, class Classifier>
42 void check_split(Index& idx, Classifier& c, double min_accuracy);
43 
49 int run_tests(const std::string& type);
50 
55 int classifier_tests();
56 
57 }
58 }
59 
60 #endif
int run_tests(const std::string &type)
Runs the classifier tests.
Definition: classifier_test.cpp:43
void check_split(Index &idx, Classifier &c, double min_accuracy)
Checks that the split accuracy is above a threshold.
Definition: classifier_test.cpp:26
void check_cv(Index &idx, Classifier &c, double min_accuracy)
Checks that the CV accuracy is above a threshold.
Definition: classifier_test.cpp:17
int classifier_tests()
Runs the classifier tests.
Definition: classifier_test.cpp:172
The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
Definition: analyzer.h:24