Used to define a class code.
Inheritance:
Public Fields
-
int n_classes
- Number of classes that the object currently handles
-
real** class_labels
- The label of each class
Public Methods
-
ClassFormat()
-
int getNumberOfClasses()
- Returns n_classes
-
virtual int getOutputSize() = 0
- Returns the output size;
-
virtual void fromOneHot(List* outputs, List* one_hot_outputs) = 0
- Transforms the output from a OneHot representation
-
virtual void toOneHot(List* outputs, List* one_hot_outputs) = 0
- Transforms the output to a OneHot representation
-
virtual int getTargetClass(void* target) = 0
- Returns the class of target
-
virtual int getOutputClass(List* outputs) = 0
- Returns the class of outputs
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 define a class code.
int n_classes
- Number of classes that the object currently handles
real** class_labels
- The label of each class
ClassFormat()
int getNumberOfClasses()
- Returns n_classes
virtual int getOutputSize() = 0
- Returns the output size;
virtual void fromOneHot(List* outputs, List* one_hot_outputs) = 0
- Transforms the output from a OneHot representation
virtual void toOneHot(List* outputs, List* one_hot_outputs) = 0
- Transforms the output to a OneHot representation
virtual int getTargetClass(void* target) = 0
- Returns the class of target
virtual 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++.