20 #include <boost/thread.hpp> 22 #include "../typedef.hpp" 23 #include "../utility/LogHelper.hpp" 47 unsigned falsePositives =
evaluateTestSets(invalidTestSets, patternName,
false);
49 unsigned falseNegatives = 0;
60 averageEvaluationDuration};
71 unsigned numUnexpectedResults = 0;
73 for (
unsigned i = 0; i < testSets.size(); ++i)
77 if (expectedValue != result.first)
79 numUnexpectedResults++;
88 return numUnexpectedResults;
93 s <<
"Evaluator is Tester.cpp:" << std::endl
94 <<
"- Calcualtes the number of false positives and false negatives and the average evaluation runtime." unsigned int mNumTestsDone
ISM::ObjectSetValidatorPtr mObjectSetValidator
PatternNameToObjectSet mInvalidTestSetsPerPattern
EvaluationResult evaluate(std::string patternName, const IsmPtr &ism)
static void displayProgress(double progress)
std::string getDescription()
static void logMessage(const std::string &message, LogLevel logLevel=LOG_INFO, const char *logColor=LOG_COLOR_DEFAULT)
bool mTestForFalseNegatives
boost::shared_ptr< ImplicitShapeModel > IsmPtr
unsigned evaluateTestSets(const std::vector< ISM::ObjectSetPtr > &testSets, const std::string &patternName, bool expectedValue)
static const char * LOG_COLOR_BLUE
double mEvaluationRuntime
this namespace contains all generally usable classes.
std::string getDescription()
PatternNameToObjectSet mValidTestSetsPerPattern