class MultiClassFormat

Define the multi class encoding format.

Inheritance:


Public Fields

[more]real* tabclasses
Array of class labels

Public Methods

[more] MultiClassFormat(DataSet* data)
Autodetect classes
[more] MultiClassFormat(int n_classes_, real* class_labels_=NULL)
By default (if class_labels_ is not specified), class labels are 0, 1,


Inherited from ClassFormat:

Public Fields

oint n_classes
oreal** class_labels

Public Methods

ovirtual int getOutputSize()
ovirtual void fromOneHot(real* outputs, real* one_hot_outputs)
ovirtual void toOneHot(real* outputs, real* one_hot_outputs)
ovirtual int getClass(real* 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

Define the multi class encoding format. Each class is coded by a single number.

oreal* tabclasses
Array of class labels

o MultiClassFormat(DataSet* data)
Autodetect classes

o MultiClassFormat(int n_classes_, real* class_labels_=NULL)
By default (if class_labels_ is not specified), class labels are 0, 1,


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



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