latest version v1.9 - last update 10 Apr 2010 |
the parameters for the class classificationStatistics More...
#include <ltiClassificationStatistics.h>
Public Member Functions | |
parameters () | |
parameters (const parameters &other) | |
virtual | ~parameters () |
const char * | getTypeName () const |
parameters & | copy (const parameters &other) |
parameters & | operator= (const parameters &other) |
virtual parameters * | clone () const |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Public Attributes | |
bool | useNames |
std::string | namesFile |
bool | namesInFileFirst |
bool | suppressZeros |
bool | writeConfusionMatrix |
std::string | confusionMatrix |
int | saveStep |
bool | useLogFile |
std::string | logFile |
bool | logAllPatterns |
std::string | path |
the parameters for the class classificationStatistics
lti::classificationStatistics::parameters::parameters | ( | ) |
default constructor
lti::classificationStatistics::parameters::parameters | ( | const parameters & | other | ) |
copy constructor
other | the parameters object to be copied |
virtual lti::classificationStatistics::parameters::~parameters | ( | ) | [virtual] |
destructor
virtual parameters* lti::classificationStatistics::parameters::clone | ( | ) | const [virtual] |
returns a pointer to a clone of the parameters
parameters& lti::classificationStatistics::parameters::copy | ( | const parameters & | other | ) |
copy the contents of a parameters object
other | the parameters object to be copied |
Reimplemented from lti::ioObject.
const char* lti::classificationStatistics::parameters::getTypeName | ( | ) | const [virtual] |
returns name of this type
Reimplemented from lti::ioObject.
parameters& lti::classificationStatistics::parameters::operator= | ( | const parameters & | other | ) |
copy data of "other" parameters
Reimplemented from lti::ioObject.
virtual bool lti::classificationStatistics::parameters::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
virtual bool lti::classificationStatistics::parameters::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented from lti::ioObject.
name of the file, where the confusion matrix will be saved (Default value "confusion.mat").
Will be appended to parameter 'path'.
Note: only considered, if parameter writeConfusionMatrix==true.
if true, all patterns will be registered in the log file, if false, only the errors will be registered (Default value: false).
Note: only considered, if parameter useLogFile==true.
name for the protocol file (Default value "logfile.txt").
Will be appended to parameter 'path'.
Note: only considered, if parameter useLogFile==true.
Filename with class names.
Name of the file where the names for the objects can be found (Default value "objectNames.nms").
This name is not expected to have a path, since it will always be seached in the directory specified in 'path'. Thus, the names file will be expected at parameters::path + parameters::namesFile.
These files consist of two columns. The first containing the object ids, the second the object names in double quotes and separated by whitespaces e.g.
314 "Circle" 4 "Square"
Note: only considered, if parameters useNames==true. Make sure that the parameter path is also specified!
std::string lti::classificationStatistics::parameters::path |
The "path" string will be concatenated before all filenames (Default value: "", i.e.
working directory).
specify the intervall of entries for automatic saving of the confusion-matrix (Default value: 100, i.e.
each 100 entries the confusion-mtrix will be saved automatically). Alternatively you may call flush() to force write at any moment.
Note: only considered, if parameter writeConfusionMatrix==true.
use a protocol file, where each entry will be registered.
(Default value: true)
Use class names in file.
If true, the ids of the objects are substituted by names given in the file specified by parameter 'namesFile' (Default value: false).
Note: this must be set to false if you intend to specify the idToNamesMap manually by calling setNames().
if true, the confusion matrix will be saved automatically in the file specified by parameter 'confusionMatrix'.
Saving intervals are defined by parameter 'saveStep' and on destruction (Default value: true).