24 class CDistanceMachine;
64 virtual bool load(FILE* srcfile);
71 virtual bool save(FILE* dstfile);
77 void set_k(int32_t p_k);
116 inline virtual const char*
get_name()
const {
return "KMeans"; }
virtual const char * get_name() const
virtual bool save(FILE *dstfile)
Class Distance, a base class for all the distances used in the Shogun toolbox.
int32_t max_iter
maximum number of iterations
int32_t dimensions
number of dimensions
SGVector< float64_t > R
radi of the clusters (size k)
A generic DistanceMachine interface.
void clustknb(bool use_old_mus, float64_t *mus_start)
SGVector< float64_t > get_radiuses()
KMeans clustering, partitions the data into k (a-priori specified) clusters.
virtual bool load(FILE *srcfile)
void set_max_iter(int32_t iter)
virtual EClassifierType get_classifier_type()
The class Features is the base class of all feature objects.
virtual void store_model_features()
virtual bool train_machine(CFeatures *data=NULL)
int32_t k
the k parameter in KMeans
SGMatrix< float64_t > get_cluster_centers()