shark::ProjectBudgetMaintenanceStrategy< InputType > Class Template Reference

Budget maintenance strategy that projects a vector. More...

#include <shark/Algorithms/Trainers/Budgeted/ProjectBudgetMaintenanceStrategy.h>

+ Inheritance diagram for shark::ProjectBudgetMaintenanceStrategy< InputType >:

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< InputTypeModelType
 
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)
 

Detailed Description

template<class InputType>
class shark::ProjectBudgetMaintenanceStrategy< InputType >

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.

Constructor & Destructor Documentation

◆ ProjectBudgetMaintenanceStrategy()

constructor.

Definition at line 71 of file ProjectBudgetMaintenanceStrategy.h.

Member Function Documentation

◆ addToModel()

template<class InputType >
virtual void shark::ProjectBudgetMaintenanceStrategy< InputType >::addToModel ( ModelType model,
InputType const &  alpha,
ElementType const &  supportVector 
)
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.

Parameters
[in,out]modelthe model the strategy will work with
[in]alphaalphas for the new budget vector
[in]supportVectorthe vector to add to the model by applying the maintenance strategy

Implements shark::AbstractBudgetMaintenanceStrategy< InputType >.

Definition at line 83 of file ProjectBudgetMaintenanceStrategy.h.

◆ name()

template<class InputType >
std::string shark::ProjectBudgetMaintenanceStrategy< InputType >::name ( ) const
inline

class name

Definition at line 89 of file ProjectBudgetMaintenanceStrategy.h.


The documentation for this class was generated from the following file: