Used to measure what you want during training/testing.
Inheritance:
Public Fields
-
void* measure
- The measurer put here what it measures.
-
FILE* file
- The measurer save measures in this file
-
DataSet* data
- The associated DataSet
Public Methods
-
Measurer(DataSet* data_, FILE* file_)
- Measurer with the associated DataSet data_, and put results in the file file_
-
Measurer(DataSet* data_, const char* filename)
- Open the file filename for writing measures.
-
virtual void measureEx()
- Measure something for the current example.
-
virtual void measureIter()
- Measure something after the current iteration.
-
virtual void measureEnd()
- Measure something at the end of the training/testing phase
Inherited from Object:
Public Methods
-
virtual void init()
-
void addOption(const char* name, int size, void* ptr, const char* help="", bool is_allowed_after_init=false)
-
void addIOption(const char* name, int* ptr, int init_value, const char* help="", bool is_allowed_after_init=false)
-
void addROption(const char* name, real* ptr, real init_value, const char* help="", bool is_allowed_after_init=false)
-
void addBOption(const char* name, bool* ptr, bool init_value, const char* help="", bool is_allowed_after_init=false)
-
void setOption(const char* name, void* ptr)
-
void setIOption(const char* name, int option)
-
void setROption(const char* name, real option)
-
void setBOption(const char* name, bool option)
-
virtual void loadFILE(FILE* file)
-
virtual void saveFILE(FILE* file)
-
void load(const char* filename)
-
void save(const char* filename)
Documentation
Used to measure what you want during training/testing.
Usually, trainers call measurers.
The DataSet associated to the measurer allow us
to know when the measurer should be called.
(if the DataSet is the train dataset, the
measurer will be called during the train phase...)
void* measure
- The measurer put here what it measures.
As it could be everything, you should
know what's inside before using it.
FILE* file
- The measurer save measures in this file
DataSet* data
- The associated DataSet
Measurer(DataSet* data_, FILE* file_)
- Measurer with the associated DataSet data_,
and put results in the file file_
Measurer(DataSet* data_, const char* filename)
- Open the file filename for writing measures.
data_ is the associated DataSet.
virtual void measureEx()
- Measure something for the current example.
(This example has been selected in data
by the trainer)
virtual void measureIter()
- Measure something after the current iteration.
(After the call of measureEx() for each
example of data)
virtual void measureEnd()
- Measure something at the end of the training/testing phase
- Direct child classes:
- WordSegMeasurer
TimeMeasurer
SaturationMeasurer
OutputMeasurer
NllMeasurer
MseMeasurer
EditDistanceMeasurer
ClassMeasurer
BoostingMeasurer
- Author:
- Ronan Collobert (collober@iro.umontreal.ca)
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.