class Measurer

Used to measure what you want during training/testing.

Inheritance:


Public Fields

[more]XFile* file
The measurer save measures in this file
[more]DataSet* data
The associated DataSet
[more]bool binary_mode
Is the measurer in binary mode ?

Public Methods

[more] Measurer(DataSet* data_, XFile* file_)
Measurer with the associated DataSet data_, and put results in the file file_
[more]virtual void measureExample()
Measure something for the current example.
[more]virtual void measureIteration()
Measure something after the current iteration.
[more]virtual void measureEnd()
Measure something at the end of the training/testing phase
[more]virtual void reset()
Reset the measurer.


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
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)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


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

Options:
"binary mode" bool binary mode for output [false]

oXFile* file
The measurer save measures in this file

oDataSet* data
The associated DataSet

obool binary_mode
Is the measurer in binary mode ?

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

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

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

ovirtual void measureEnd()
Measure something at the end of the training/testing phase

ovirtual void reset()
Reset the measurer. (By default, do nothing).


Direct child classes:
WordSegMeasurer
TimeMeasurer
SaturationMeasurer
OutputMeasurer
NLLMeasurer
MSEMeasurer
FrameSegMeasurer
EditDistanceMeasurer
ClassNLLMeasurer
ClassMeasurer
BoostingMeasurer
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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