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< InputType > | |
AbstractBudgetMaintenanceStrategy () | |
std::string | name () const |
return the class name More... | |
Additional Inherited Members | |
Public Types inherited from shark::AbstractBudgetMaintenanceStrategy< InputType > | |
typedef KernelExpansion< InputType > | ModelType |
typedef LabeledData< InputType, unsigned int > | DataType |
typedef DataType::element_type | ElementType |
Static Public Member Functions inherited from shark::AbstractBudgetMaintenanceStrategy< InputType > | |
static void | findSmallestVector (ModelType const &model, size_t &minIndex, double &minAlpha) |
Budget maintenance strategy that projects a vector.
This is an budget strategy that simply projects one of the budget vectors onto the others. The resulting coefficients are then added to the other vectors and the projected vector is removed from the budget.
Definition at line 63 of file ProjectBudgetMaintenanceStrategy.h.
|
inline |
constructor.
Definition at line 71 of file ProjectBudgetMaintenanceStrategy.h.
|
inlinevirtual |
add to model. this is just a fake here, as it is unclear in general how to merge two objects, one needs to specialize this template.
[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 |
Implements shark::AbstractBudgetMaintenanceStrategy< InputType >.
Definition at line 83 of file ProjectBudgetMaintenanceStrategy.h.
|
inline |
class name
Definition at line 89 of file ProjectBudgetMaintenanceStrategy.h.