class ClassMeasurer

Compute the classification error (in %) of the inputs with respect to the targets of data.

Inheritance:


Public Methods

[more] ClassMeasurer(List* inputs_, DataSet* data_, ClassFormat* class_format_, FILE* file_)
[more] ClassMeasurer(List* inputs_, DataSet* data_, ClassFormat* class_format_, const char* filename)


Inherited from Measurer:

Public Fields

ovoid* measure
oFILE* file
oDataSet* data

Public Methods

ovirtual void measureEx()
ovirtual void measureIter()
ovirtual void measureEnd()


Inherited from Object:

Public Methods

ovirtual void init()
ovoid addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovirtual void loadFILE(FILE* file)
ovirtual void saveFILE(FILE* file)
ovoid load(const char* filename)
ovoid save(const char* filename)


Documentation

Compute the classification error (in %) of the inputs with respect to the targets of data.

The format of the class is given with a ClassFormat.

measure = {<[real] error proportion>, <[real] current number of errors>}

If the option "confusion matrix" is set, there is {<[n_classes**2 int] confusion matrix>, <[n_classes**2 int] current confusion matrix>} after that.

Options:
"confusion matrix" bool compute the confusion matrix [false]

o ClassMeasurer(List* inputs_, DataSet* data_, ClassFormat* class_format_, FILE* file_)

o ClassMeasurer(List* inputs_, DataSet* data_, ClassFormat* class_format_, const char* filename)


This class has no child classes.
Author:
Ronan Collobert (collober@iro.umontreal.ca)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.