14 using namespace shogun;
17 :
CMachine(), w_dim(0), w(NULL), bias(0), features(NULL)
66 SG_ERROR(
"Specified features are not of type CDotFeatures\n");
bool has_property(EFeatureProperty p)
virtual void dense_dot_range(float64_t *output, int32_t start, int32_t stop, float64_t *alphas, float64_t *vec, int32_t dim, float64_t b)
The class Labels models labels, i.e. class assignments of objects.
virtual int32_t get_num_vectors() const =0
Features that support dot products among other operations.
A generic learning machine interface.
virtual int32_t get_dim_feature_space() const =0
void add(bool *param, const char *name, const char *description="")
Class SGObject is the base class of all shogun objects.
virtual bool save(FILE *dstfile)
virtual bool load(FILE *srcfile)
virtual ~CLinearMachine()
void add_vector(bool **param, index_t *length, const char *name, const char *description="")
The class Features is the base class of all feature objects.
virtual void set_features(CDotFeatures *feat)
virtual CLabels * apply()
#define SG_MALLOC(type, len)