
Definition at line 24 of file Hierarchical.h.
Public Member Functions | |
| CHierarchical () | |
| CHierarchical (INT merges, CDistance *d) | |
| virtual | ~CHierarchical () |
| virtual EClassifierType | get_classifier_type () |
| virtual bool | train () |
| virtual bool | load (FILE *srcfile) |
| virtual bool | save (FILE *dstfile) |
| void | set_merges (INT m) |
| INT | get_merges () |
| void | get_assignment (INT *&assign, INT &num) |
| void | get_merge_distance (DREAL *&dist, INT &num) |
| void | get_merge_distances (DREAL **dist, INT *num) |
| void | get_pairs (INT *&tuples, INT &rows, INT &num) |
| void | get_cluster_pairs (INT **tuples, INT *rows, INT *num) |
| void | set_distance (CDistance *d) |
| CDistance * | get_distance () |
| virtual CLabels * | classify (CLabels *output=NULL) |
| virtual DREAL | classify_example (INT num) |
| virtual void | set_labels (CLabels *lab) |
| virtual CLabels * | get_labels () |
| virtual DREAL | get_label (INT i) |
| void | set_max_train_time (DREAL t) |
| DREAL | get_max_train_time () |
Static Public Attributes | |
| static CParallel | parallel |
| static CIO | io |
| static CVersion | version |
Protected Attributes | |
| INT | merges |
| the number of merges in hierarchical clustering | |
| INT | dimensions |
| number of dimensions | |
| INT | assignment_size |
| size of assignment table | |
| INT * | assignment |
| cluster assignment for the num_points | |
| INT | table_size |
| size of the below tables | |
| INT * | pairs |
| tuples of i/j | |
| DREAL * | merge_distance |
| distance at which pair i/j was added | |
| CDistance * | distance |
| DREAL | max_train_time |
| CLabels * | labels |
| CHierarchical::CHierarchical | ( | ) |
default constructor
Definition at line 22 of file Hierarchical.cpp.
constructor
| merges | the merges | |
| d | distance |
Definition at line 28 of file Hierarchical.cpp.
| CHierarchical::~CHierarchical | ( | ) | [virtual] |
Definition at line 35 of file Hierarchical.cpp.
| virtual EClassifierType CHierarchical::get_classifier_type | ( | ) | [virtual] |
get classifier type
Reimplemented from CClassifier.
Definition at line 42 of file Hierarchical.h.
| bool CHierarchical::train | ( | ) | [virtual] |
train distance machine
Reimplemented from CClassifier.
Definition at line 42 of file Hierarchical.cpp.
| bool CHierarchical::load | ( | FILE * | srcfile | ) | [virtual] |
load distance machine from file
| srcfile | file to load from |
Reimplemented from CClassifier.
Definition at line 137 of file Hierarchical.cpp.
| bool CHierarchical::save | ( | FILE * | dstfile | ) | [virtual] |
save distance machine to file
| dstfile | file to save to |
Reimplemented from CClassifier.
Definition at line 142 of file Hierarchical.cpp.
| void CHierarchical::set_merges | ( | INT | m | ) |
| INT CHierarchical::get_merges | ( | ) |
get assignment
| assign | current assignment is stored in here | |
| num | number of assignments is stored in here |
Definition at line 88 of file Hierarchical.h.
get merge distance
| dist | current merge distance is stored in here | |
| num | number of merge distances is stored in here |
Definition at line 99 of file Hierarchical.h.
get merge distances (swig compatible)
| dist | current merge distances is stored in here | |
| num | number of merge distances is stored in here |
Definition at line 110 of file Hierarchical.h.
get pairs
| tuples | current pairs are stored in here | |
| rows | number of rows is stored in here | |
| num | number of pairs is stored in here |
Definition at line 126 of file Hierarchical.h.
get cluster pairs (swig compatible)
| tuples | current pairs are stored in here | |
| rows | number of rows is stored in here | |
| num | number of pairs is stored in here |
Definition at line 139 of file Hierarchical.h.
| void CDistanceMachine::set_distance | ( | CDistance * | d | ) | [inherited] |
| CDistance* CDistanceMachine::get_distance | ( | ) | [inherited] |
classify object
| output | classified labels |
Reimplemented in CKNN, CLinearClassifier, CPluginEstimate, CSparseLinearClassifier, CMultiClassSVM, CSVM, CWDSVMOcas, and CKernelMachine.
Definition at line 22 of file Classifier.cpp.
classify one example
abstract base method
| num | which example to classify |
Reimplemented in CKernelPerceptron, CKNN, CLinearClassifier, CPluginEstimate, CSparseLinearClassifier, CMultiClassSVM, CSVM, and CWDSVMOcas.
Definition at line 47 of file Classifier.h.
| virtual void CClassifier::set_labels | ( | CLabels * | lab | ) | [virtual, inherited] |
| virtual CLabels* CClassifier::get_labels | ( | ) | [virtual, inherited] |
get one specific label
| i | index of label to get |
Definition at line 89 of file Classifier.h.
| void CClassifier::set_max_train_time | ( | DREAL | t | ) | [inherited] |
set maximum training time
| t | maximimum training time |
Definition at line 95 of file Classifier.h.
| DREAL CClassifier::get_max_train_time | ( | ) | [inherited] |
get maximum training time
Definition at line 101 of file Classifier.h.
INT CHierarchical::merges [protected] |
INT CHierarchical::dimensions [protected] |
INT CHierarchical::assignment_size [protected] |
INT* CHierarchical::assignment [protected] |
INT CHierarchical::table_size [protected] |
INT* CHierarchical::pairs [protected] |
DREAL* CHierarchical::merge_distance [protected] |
CDistance* CDistanceMachine::distance [protected, inherited] |
the distance
Definition at line 49 of file DistanceMachine.h.
DREAL CClassifier::max_train_time [protected, inherited] |
maximum training time
Definition at line 111 of file Classifier.h.
CLabels* CClassifier::labels [protected, inherited] |
labels
Definition at line 114 of file Classifier.h.
CParallel CSGObject::parallel [static, inherited] |
Definition at line 105 of file SGObject.h.
CIO CSGObject::io [static, inherited] |
Definition at line 106 of file SGObject.h.
CVersion CSGObject::version [static, inherited] |
Definition at line 107 of file SGObject.h.