class ClassFormat

Used to define a class code.

Inheritance:


Public Fields

[more]int n_classes
Number of classes that the object currently handles
[more]real** class_labels
The label of each class

Public Methods

[more] ClassFormat()
[more]virtual int getOutputSize() = 0
Returns the output size
[more]virtual void fromOneHot(real* outputs, real* one_hot_outputs) = 0
Transforms the output from a OneHot representation
[more]virtual void toOneHot(real* outputs, real* one_hot_outputs) = 0
Transforms the output to a OneHot representation
[more]virtual int getClass(real* vector) = 0
Returns the class of vector


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 define a class code.

oint n_classes
Number of classes that the object currently handles

oreal** class_labels
The label of each class

o ClassFormat()

ovirtual int getOutputSize() = 0
Returns the output size

ovirtual void fromOneHot(real* outputs, real* one_hot_outputs) = 0
Transforms the output from a OneHot representation

ovirtual void toOneHot(real* outputs, real* one_hot_outputs) = 0
Transforms the output to a OneHot representation

ovirtual int getClass(real* vector) = 0
Returns the class of vector


Direct child classes:
TwoClassFormat
OneHotClassFormat
MultiClassFormat
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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