10 #ifndef _NEAREST_CENTROID_H__
11 #define _NEAREST_CENTROID_H__
25 class CDistanceMachine;
84 virtual const char*
get_name()
const {
return "NearestCentroid"; }
bool m_is_trained
Tells if the classifier has been trained or not.
Class Distance, a base class for all the distances used in the Shogun toolbox.
The class Labels models labels, i.e. class assignments of objects.
virtual const char * get_name() const
void set_shrinking(float64_t shrinking)
float64_t m_shrinking
Shrinking parameter.
A generic DistanceMachine interface.
CDenseFeatures< float64_t > * get_centroids() const
float64_t get_shrinking() const
Class NearestCentroid, an implementation of Nearest Shrunk Centroid classifier.
CDenseFeatures< float64_t > * m_centroids
The centroids of the trained features.
virtual bool train_machine(CFeatures *data=NULL)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
int32_t m_num_classes
number of classes (i.e. number of values labels can take)
virtual ~CNearestCentroid()
MACHINE_PROBLEM_TYPE(PT_MULTICLASS)