Public Member Functions  
template < typename VecType >  
void  UpdateWeights (const VecType &trainingPoint, arma::mat &weights, arma::vec &biases, const size_t incorrectClass, const size_t correctClass, const double instanceWeight=1.0) 
This function is called to update the weightVectors matrix. More...  
Definition at line 30 of file simple_weight_update.hpp.

inline 
This function is called to update the weightVectors matrix.
It decreases the weights of the incorrectly classified class while increasing the weight of the correct class it should have been classified to.
Type  of vector (should be an Armadillo vector like arma::vec or arma::sp_vec or something similar). 
trainingPoint  Point that was misclassified. 
weights  Matrix of weights. 
biases  Vector of biases. 
incorrectClass  Index of class that the point was incorrectly classified as. 
correctClass  Index of the true class of the point. 
instanceWeight  Weight to be given to this particular point during training (this is useful for boosting). 
Definition at line 50 of file simple_weight_update.hpp.