|
latest version v1.9 - last update 24 Nov 2005 |
|
#include <ltiClassificationStatistics.h>
Inheritance diagram for lti::classificationStatistics::parameters:


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 |
|
|
default constructor
|
|
|
copy constructor
|
|
|
destructor
|
|
|
returns a pointer to a clone of the parameters
|
|
|
copy the contents of a parameters object
|
|
|
returns name of this type
Reimplemented from lti::ioObject. |
|
|
copy data of "other" parameters
|
|
||||||||||||
|
read the parameters from the given ioHandler
Reimplemented from lti::ioObject. |
|
||||||||||||
|
write the parameters in the given ioHandler
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! |
|
|
Names in file first. The order of the columns in the names file can be inverted setting this parameter to true. Set to true if each line contains name of object followed by id. Set to false if each line contains the id followed by the object name. Default value: false |
|
|
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. |
|
|
If the confusion matrix is going to be read by humans, it is usually better if "-" are used instead of zeros. If you need other tools (like Matlab, Excel, etc.) to read the confusion matrix files, you need the zeros. Default value: 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). |