11 #ifndef _HIERARCHICAL_H__
12 #define _HIERARCHICAL_H__
23 class CDistanceMachine;
66 virtual bool load(FILE* srcfile);
73 virtual bool save(FILE* dstfile);
107 virtual const char*
get_name()
const {
return "Hierarchical"; }
virtual bool save(FILE *dstfile)
SGVector< float64_t > get_merge_distances()
Class Distance, a base class for all the distances used in the Shogun toolbox.
MACHINE_PROBLEM_TYPE(PT_MULTICLASS)
Agglomerative hierarchical single linkage clustering.
int32_t merges
the number of merges in hierarchical clustering
virtual const char * get_name() const
void set_merges(int32_t m)
int32_t * assignment
cluster assignment for the num_points
A generic DistanceMachine interface.
virtual bool train_machine(CFeatures *data=NULL)
SGMatrix< int32_t > get_cluster_pairs()
int32_t table_size
size of the below tables
int32_t assignment_size
size of assignment table
all of classes and functions are contained in the shogun namespace
SGVector< int32_t > get_assignment()
virtual void store_model_features()
virtual bool load(FILE *srcfile)
The class Features is the base class of all feature objects.
float64_t * merge_distance
distance at which pair i/j was added
virtual bool train_require_labels() const
int32_t dimensions
number of dimensions
virtual EMachineType get_classifier_type()
int32_t * pairs
tuples of i/j