#include <ros/package.h>
#include <boost/filesystem/path.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <ISM/utility/TableHelper.hpp>
#include "learner/SceneLearningEngine.h"
#include "inference/model/SceneModelDescription.h"
#include <sys/time.h>
#include <string>
#include <chrono>
#include <vector>
#include <random>
#include <algorithm>
Go to the source code of this file.
|
double | calculateStandardDeviation (const std::vector< double > &values, const double &average) |
|
void | createHistogram (const std::vector< double > &values, const unsigned int intervals, const std::string &fileName) |
|
PerformanceEvaluationResult | evaluate (const std::vector< ObjectSetPtr > &ts, bool valid, const std::string &patternName, const std::string &trainedScenePath) |
|
void | initRandomScenes () |
|
void | initTestSets () |
|
std::vector< ObjectSetPtr > | loadTestSetsFromDB (std::string fileName, std::string patternName) |
|
int | main (int argc, char *argv[]) |
|
void | runOptimization (std::ostringstream &os) |
|
void | setDefaultParameters () |
|
void | testPerformance () |
|
void | trainScenes (unsigned int run) |
|
void | writeFile (const std::string &directoryPath, const std::string &filenName, std::ostringstream &content) |
|
double calculateStandardDeviation |
( |
const std::vector< double > & |
values, |
|
|
const double & |
average |
|
) |
| |
void createHistogram |
( |
const std::vector< double > & |
values, |
|
|
const unsigned int |
intervals, |
|
|
const std::string & |
fileName |
|
) |
| |
PerformanceEvaluationResult evaluate |
( |
const std::vector< ObjectSetPtr > & |
ts, |
|
|
bool |
valid, |
|
|
const std::string & |
patternName, |
|
|
const std::string & |
trainedScenePath |
|
) |
| |
void initRandomScenes |
( |
| ) |
|
std::vector<ObjectSetPtr> loadTestSetsFromDB |
( |
std::string |
fileName, |
|
|
std::string |
patternName |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
This program serves to test training and recognition performance of asr_psm. Note that it does not generate test sets (for learning) and validation sets (for recognition) on its own. Generate them using the standard combinatorial optimization launch file with quit_after_test_set_generation set to true and the same parameters as below. Write the databases to asr_psm/data/test/performanceTestRessources/[ValidationSets/]demoRecording_X_Y00.sqlite with X from objectCounts, Y from timestepCounts below. Also note that training will, unless stopped earlier, perform 1000 runs while cycling through the different algorithms, so the comparably long tests can be run mostly automated. Errors are tolerated and marked in the results, again to allow it to run without needing constant supervision. The recognition tests have to be run one each, but they are also usually much quicker.
Definition at line 518 of file performanceTester.cpp.
void runOptimization |
( |
std::ostringstream & |
os | ) |
|
void setDefaultParameters |
( |
| ) |
|
void trainScenes |
( |
unsigned int |
run | ) |
|
void writeFile |
( |
const std::string & |
directoryPath, |
|
|
const std::string & |
filenName, |
|
|
std::ostringstream & |
content |
|
) |
| |
std::vector<std::string> demoRecordings |
std::vector<std::string> demoRecordingsNames |
std::string inferenceAlgorithm = "maximum" |
std::string invalidTestSetPref = "invalidValidationSets_" |
std::vector<unsigned> objectCounts |
std::string optimizationAlgorithm = "RecordHunt" |
double recognitionThreshold = 1.0e-04 |
std::string testSetFolder = "ValidationSets" |
std::string testSetFolderNoRefs = "TestSetsNoRefs" |
std::vector<std::string> testSets |
std::vector<std::string> testSetsNoRefs |
std::vector<unsigned> timestepCounts |
std::string treeAlgorithm = "fullymeshed" |
std::string validTestSetPref = "validValidationSets_" |
asr_psm
Author(s): Braun Kai, Gehrung Joachim, Heizmann Heinrich, Meißner Pascal
autogenerated on Fri Nov 15 2019 04:00:08