15 #include <shogun/lib/config.h> 147 SG_ERROR(
"LDA requires SIMPLE REAL valued features\n")
153 virtual const char*
get_name()
const {
return "LDA"; }
172 template <
typename ST>
virtual bool train_machine(CFeatures *data=NULL)
bool train_machine_templated(SGVector< int32_t > train_labels, CFeatures *features)
virtual EMachineType get_classifier_type()
The class Labels models labels, i.e. class assignments of objects.
virtual void set_features(CDotFeatures *feat)
Features that support dot products among other operations.
Class LDA implements regularized Linear Discriminant Analysis.
MACHINE_PROBLEM_TYPE(PT_BINARY)
CLDA(float64_t gamma=0, ELDAMethod method=AUTO_LDA)
virtual void set_features(CDotFeatures *feat)
virtual EFeatureClass get_feature_class() const =0
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
The class DenseFeatures implements dense feature matrices.
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual const char * get_name() const
void set_gamma(float64_t gamma)
virtual EFeatureType get_feature_type() const =0