24 class CDistanceMachine;
94 virtual bool load(FILE* srcfile);
101 virtual bool save(FILE* dstfile);
107 void set_k(int32_t p_k);
170 virtual const char*
get_name()
const {
return "KMeans"; }
230 virtual bool train_machine(
CFeatures* data=NULL);
233 virtual void store_model_features();
235 virtual bool train_require_labels()
const {
return false; }
251 void compute_cluster_variances();
virtual const char * get_name() const
EKMeansMethod get_train_method() const
virtual bool save(FILE *dstfile)
void set_mbKMeans_params(int32_t b, int32_t t)
Class Distance, a base class for all the distances used in the Shogun toolbox.
bool get_use_kmeanspp() const
void set_mbKMeans_batch_size(int32_t b)
void set_mbKMeans_iter(int32_t t)
void set_use_kmeanspp(bool kmpp)
A generic DistanceMachine interface.
SGVector< float64_t > get_radiuses()
KMeans clustering, partitions the data into k (a-priori specified) clusters.
#define MACHINE_PROBLEM_TYPE(PT)
virtual bool load(FILE *srcfile)
void set_max_iter(int32_t iter)
void set_fixed_centers(bool fixed)
all of classes and functions are contained in the shogun namespace
virtual void set_initial_centers(SGMatrix< float64_t > centers)
virtual EMachineType get_classifier_type()
The class Features is the base class of all feature objects.
int32_t get_mbKMeans_batch_size() const
void set_train_method(EKMeansMethod f)
int32_t get_mbKMeans_iter() const
SGMatrix< float64_t > get_cluster_centers()