Budget maintenance strategy that projects a vector. More...
#include <shark/Algorithms/Trainers/Budgeted/ProjectBudgetMaintenanceStrategy.h>
Public Member Functions | |
ProjectBudgetMaintenanceStrategy () | |
constructor. More... | |
virtual void | addToModel (ModelType &model, InputType const &alpha, ElementType const &supportVector) |
std::string | name () const |
class name More... | |
Public Member Functions inherited from shark::AbstractBudgetMaintenanceStrategy< RealVector > | |
AbstractBudgetMaintenanceStrategy () | |
virtual void | addToModel (ModelType &model, RealVector const &alpha, ElementType const &supportVector)=0 |
std::string | name () const |
return the class name More... | |
Additional Inherited Members | |
Public Types inherited from shark::AbstractBudgetMaintenanceStrategy< RealVector > | |
typedef KernelExpansion< RealVector > | ModelType |
typedef LabeledData< RealVector, unsigned int > | DataType |
typedef DataType::element_type | ElementType |
Static Public Member Functions inherited from shark::AbstractBudgetMaintenanceStrategy< RealVector > | |
static void | findSmallestVector (ModelType const &model, size_t &minIndex, double &minAlpha) |
Budget maintenance strategy that projects a vector.
Definition at line 104 of file ProjectBudgetMaintenanceStrategy.h.
|
inline |
constructor.
Definition at line 113 of file ProjectBudgetMaintenanceStrategy.h.
|
inlinevirtual |
add a vector to the model. this will add the given vector to the model and merge the budget so that afterwards the budget size is kept the same. If the budget has a free entry anyway, no merging will be performed, but instead the given vector is simply added to the budget.
[in,out] | model | the model the strategy will work with |
[in] | alpha | alphas for the new budget vector |
[in] | supportVector | the vector to add to the model by applying the maintenance strategy |
Definition at line 127 of file ProjectBudgetMaintenanceStrategy.h.
References shark::KernelExpansion< InputType >::basis(), shark::Data< Type >::element(), and shark::Data< Type >::numberOfElements().
|
inline |
class name
Definition at line 221 of file ProjectBudgetMaintenanceStrategy.h.