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]int getNumberOfClasses()
Returns n_classes
[more]virtual int getOutputSize() = 0
Returns the output size;
[more]virtual void fromOneHot(List* outputs, List* one_hot_outputs) = 0
Transforms the output from a OneHot representation
[more]virtual void toOneHot(List* outputs, List* one_hot_outputs) = 0
Transforms the output to a OneHot representation
[more]virtual int getTargetClass(void* target) = 0
Returns the class of target
[more]virtual int getOutputClass(List* outputs) = 0
Returns the class of outputs


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

oint getNumberOfClasses()
Returns n_classes

ovirtual int getOutputSize() = 0
Returns the output size;

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

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

ovirtual int getTargetClass(void* target) = 0
Returns the class of target

ovirtual int getOutputClass(List* outputs) = 0
Returns the class of outputs


Direct child classes:
TwoClassFormat
OneHotClassFormat
MultiClassFormat
Author:
Ronan Collobert (collober@iro.umontreal.ca)

Alphabetic index HTML hierarchy of classes or Java



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