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 EFeatureType get_feature_type() const =0
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.
virtual const char * get_name() const
MACHINE_PROBLEM_TYPE(PT_BINARY)
CLDA(float64_t gamma=0, ELDAMethod method=AUTO_LDA)
virtual void set_features(CDotFeatures *feat)
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
virtual EFeatureClass get_feature_class() const =0
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.
void set_gamma(float64_t gamma)