Darwin
1.10(beta)
|
Includes a copy of each feature from the input space for each class other than the last, i.e., . This is the standard feature mapping for multi-class logistic models.
More...
Public Member Functions | |
drwnIdentityJointFeatureMap (int nFeatures, int nClasses) | |
const char * | type () const |
returns object type as a string (e.g., Foo::type() { return "Foo"; }) | |
drwnIdentityJointFeatureMap * | clone () const |
returns a copy of the class usually implemented as virtual Foo* clone() { return new Foo(*this); } | |
int | numParameters () const |
returns the number of features in the (joint) output space | |
void | initialize (int nFeatures, int nClasses) |
initialize number of classes and number of features | |
vector< double > | operator() (const vector< double > &x, int y) const |
joint feature vector for given class | |
vector< double > | operator() (const vector< double > &x) const |
joint feature vector summed over classes | |
double | dot (const vector< double > &theta, const vector< double > &x, int y) const |
dot product | |
double | dot (const vector< double > &theta, const vector< double > &x) const |
dot product | |
void | mac (vector< double > &theta, const vector< double > &x, double alpha, int y) const |
multiply-accumulate | |
void | mac (vector< double > &theta, const vector< double > &x, const vector< double > &alpha) const |
multiply-accumulate | |
![]() | |
drwnJointFeatureMap () | |
default constructor | |
drwnJointFeatureMap (int nFeatures, int nClasses) | |
construct with known number of input features and classes | |
virtual | ~drwnJointFeatureMap () |
destructor | |
int | numFeatures () const |
returns the number of features in the input space | |
int | numClasses () const |
returns the number of classes | |
double | dot (const vector< double > &theta, const vector< double > &x) const |
returns the dot product ![]() | |
Protected Attributes | |
int | _nFeaturesDiv4 |
int | _nFeaturesMod4 |
![]() | |
int | _nFeatures |
number of input features | |
int | _nClasses |
number of class labels | |
Includes a copy of each feature from the input space for each class other than the last, i.e., . This is the standard feature mapping for multi-class logistic models.