|
SHOGUN v0.9.0
|
The class Labels models labels, i.e. class assignments of objects.
Labels here are always real-valued and thus applicable to classification (cf. CClassifier) and regression (cf. CRegression) problems.

公有成员 | |
| CLabels () | |
| CLabels (int32_t num_labels) | |
| CLabels (float64_t *src, int32_t len) | |
| CLabels (float64_t *in_confidences, int32_t in_num_labels, int32_t in_num_classes) | |
| CLabels (CFile *loader) | |
| virtual | ~CLabels () |
| virtual void | load (CFile *loader) |
| virtual void | save (CFile *writer) |
| bool | set_label (int32_t idx, float64_t label) |
| bool | set_int_label (int32_t idx, int32_t label) |
| float64_t | get_label (int32_t idx) |
| int32_t | get_int_label (int32_t idx) |
| bool | is_two_class_labeling () |
| int32_t | get_num_classes () |
| float64_t * | get_labels (int32_t &len) |
| void | get_labels (float64_t **dst, int32_t *len) |
| void | set_labels (float64_t *src, int32_t len) |
| void | set_to_one () |
| void | set_confidences (float64_t *in_confidences, int32_t in_num_labels, int32_t in_num_classes) |
| float64_t * | get_confidences (int32_t &out_num_labels, int32_t &out_num_classes) |
| void | get_confidences (float64_t **dst, int32_t *out_num_labels, int32_t *out_num_classes) |
| float64_t * | get_sample_confidences (const int32_t &in_sample_index, int32_t &out_num_classes) |
| int32_t * | get_int_labels (int32_t &len) |
| void | set_int_labels (int32_t *labels, int32_t len) |
| int32_t | get_num_labels () |
| virtual const char * | get_name () const |
保护成员 | |
| void | find_labels () |
保护属性 | |
| int32_t | num_labels |
| float64_t * | labels |
| int32_t | m_num_classes |
| float64_t * | m_confidences |
| int32_t | m_confidence_classes |
| int32_t | m_confidence_labels |
| CLabels | ( | ) |
default constructor
在文件Labels.cpp第21行定义。
| CLabels | ( | int32_t | num_labels | ) |
constructor
| in_confidences | confidence matrix to be used to derive the labels |
| in_num_labels | number of labels |
| in_num_classes | number of classes |
在文件Labels.cpp第60行定义。
| ~CLabels | ( | ) | [virtual] |
在文件Labels.cpp第85行定义。
| void find_labels | ( | ) | [protected] |
find labels from the confidences using argmax over the classes.
在文件Labels.cpp第197行定义。
| float64_t * get_confidences | ( | int32_t & | out_num_labels, |
| int32_t & | out_num_classes | ||
| ) |
get confidences
| out_num_labels | number of labels |
| out_num_classes | number of classes will be written to it |
在文件Labels.cpp第149行定义。
| void get_confidences | ( | float64_t ** | dst, |
| int32_t * | out_num_labels, | ||
| int32_t * | out_num_classes | ||
| ) |
get confidences (swig compatible)
| dst | pointer to the confidences matrix (returned) |
| out_num_labels | number of labels (returned) |
| out_num_classes | number of classes will be written to it (returned) |
在文件Labels.cpp第162行定义。
| int32_t get_int_label | ( | int32_t | idx | ) |
| int32_t * get_int_labels | ( | int32_t & | len | ) |
get INT label vector caller has to clean up
| len | number of labels to get |
在文件Labels.cpp第288行定义。
| float64_t get_label | ( | int32_t | idx | ) |
| float64_t * get_labels | ( | int32_t & | len | ) |
| void get_labels | ( | float64_t ** | dst, |
| int32_t * | len | ||
| ) |
get labels (swig compatible)
| dst | where labels will be stored in |
| len | where number of labels will be stored in |
在文件Labels.cpp第273行定义。
| virtual const char* get_name | ( | void | ) | const [virtual] |
| int32_t get_num_classes | ( | ) |
return number of classes (for multiclass) labels have to be zero based 0,1,...C missing labels are illegal
在文件Labels.cpp第244行定义。
| float64_t * get_sample_confidences | ( | const int32_t & | in_sample_index, |
| int32_t & | out_num_classes | ||
| ) |
get confidences for a sample
| in_sample_index | index of a sample |
| out_num_classes | number of classes will be written to it |
在文件Labels.cpp第178行定义。
| bool is_two_class_labeling | ( | ) |
| void load | ( | CFile * | loader | ) | [virtual] |
| void save | ( | CFile * | writer | ) | [virtual] |
| void set_confidences | ( | float64_t * | in_confidences, |
| int32_t | in_num_labels, | ||
| int32_t | in_num_classes | ||
| ) |
set confidences
| in_confidences | confidence matrix to be used to derive the labels |
| in_num_labels | number of labels |
| in_num_classes | number of classes |
在文件Labels.cpp第124行定义。
| bool set_int_label | ( | int32_t | idx, |
| int32_t | label | ||
| ) |
| void set_int_labels | ( | int32_t * | labels, |
| int32_t | len | ||
| ) |
set INT labels caller has to clean up
| labels | INT labels |
| len | number of INT labels |
在文件Labels.cpp第303行定义。
| bool set_label | ( | int32_t | idx, |
| float64_t | label | ||
| ) |
| void set_labels | ( | float64_t * | src, |
| int32_t | len | ||
| ) |
| void set_to_one | ( | ) |
set all labels to +1
在文件Labels.cpp第53行定义。
int32_t m_confidence_classes [protected] |
int32_t m_confidence_labels [protected] |
float64_t* m_confidences [protected] |
int32_t m_num_classes [protected] |
int32_t num_labels [protected] |