Averaging Prediction Mechanism in Fast Branch and Bound & Branch and Bound with Partial Prediction. More...
#include <branch_and_bound_predictor_averaging.hpp>
Public Member Functions | |
virtual void | initialize (const DIMTYPE features) |
virtual bool | learn (const DIMTYPE feature, const RETURNTYPE value) |
virtual bool | predict (const DIMTYPE feature, RETURNTYPE &value) const |
unsigned long | get_count (const DIMTYPE feature) const |
void | set_gamma (const RETURNTYPE gamma=1.0) |
void | set_delta (const unsigned int delta=1) |
virtual std::ostream & | print (std::ostream &os) const |
Protected Attributes | |
vector< RETURNTYPE > | _value |
sums up 'learned' values | |
vector< unsigned long > | _count |
records the number of summed up values | |
RETURNTYPE | _gamma |
unsigned int | _delta |
Averaging Prediction Mechanism in Fast Branch and Bound & Branch and Bound with Partial Prediction.
demo42.cpp, and demo43.cpp.