12 #ifndef _KMEANSBASE_H__
13 #define _KMEANSBASE_H__
25 class CDistanceMachine;
67 virtual bool load(FILE* srcfile);
74 virtual bool save(FILE* dstfile);
80 void set_k(int32_t p_k);
143 virtual const char*
get_name()
const {
return "KMeansBase"; }
SGVector< float64_t > get_radiuses()
virtual void store_model_features()
Class Distance, a base class for all the distances used in the Shogun toolbox.
virtual bool save(FILE *dstfile)
void set_max_iter(int32_t iter)
SGMatrix< float64_t > mus
void set_random_centers()
A generic DistanceMachine interface.
void compute_cluster_variances()
void initialize_training(CFeatures *data=NULL)
#define MACHINE_PROBLEM_TYPE(PT)
virtual const char * get_name() const
virtual EMachineType get_classifier_type()
all of classes and functions are contained in the shogun namespace
bool get_use_kmeanspp() const
virtual bool load(FILE *srcfile)
The class Features is the base class of all feature objects.
virtual bool train_require_labels() const
SGMatrix< float64_t > kmeanspp()
SGMatrix< float64_t > get_cluster_centers()
void set_use_kmeanspp(bool kmpp)
virtual void set_initial_centers(SGMatrix< float64_t > centers)
void set_fixed_centers(bool fixed)
SGMatrix< float64_t > mus_initial