class Measurer

Used to measure what you want during training/testing.

Inheritance:


Public Fields

[more]void* measure
The measurer put here what it measures.
[more]FILE* file
The measurer save measures in this file
[more]DataSet* data
The associated DataSet

Public Methods

[more] Measurer(DataSet* data_, FILE* file_)
Measurer with the associated DataSet data_, and put results in the file file_
[more] Measurer(DataSet* data_, const char* filename)
Open the file filename for writing measures.
[more]virtual void measureEx()
Measure something for the current example.
[more]virtual void measureIter()
Measure something after the current iteration.
[more]virtual void measureEnd()
Measure something at the end of the training/testing phase


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

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...)

ovoid* measure
The measurer put here what it measures. As it could be everything, you should know what's inside before using it.

oFILE* file
The measurer save measures in this file

oDataSet* data
The associated DataSet

o Measurer(DataSet* data_, FILE* file_)
Measurer with the associated DataSet data_, and put results in the file file_

o Measurer(DataSet* data_, const char* filename)
Open the file filename for writing measures. data_ is the associated DataSet.

ovirtual void measureEx()
Measure something for the current example. (This example has been selected in data by the trainer)

ovirtual void measureIter()
Measure something after the current iteration. (After the call of measureEx() for each example of data)

ovirtual 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++.