The CFWrapperBase class provides a unified interface that can be used by the CFModel class to interact with all different CF types at runtime. More...
Public Member Functions | |
CFWrapperBase () | |
Create the object. The base class has nothing to hold. More... | |
virtual | ~CFWrapperBase () |
Delete the object. More... | |
virtual CFWrapperBase * | Clone () const =0 |
Make a copy of the object. More... | |
virtual void | GetRecommendations (const NeighborSearchTypes nsType, const InterpolationTypes interpolationType, const size_t numRecs, arma::Mat< size_t > &recommendations)=0 |
Compute recommendations for all users. More... | |
virtual void | GetRecommendations (const NeighborSearchTypes nsType, const InterpolationTypes interpolationType, const size_t numRecs, arma::Mat< size_t > &recommendations, const arma::Col< size_t > &users)=0 |
Compute recommendations. More... | |
virtual void | Predict (const NeighborSearchTypes nsType, const InterpolationTypes interpolationType, const arma::Mat< size_t > &combinations, arma::vec &predictions)=0 |
Compute predictions for users. More... | |
The CFWrapperBase class provides a unified interface that can be used by the CFModel class to interact with all different CF types at runtime.
All CF wrapper types inherit from this base class.
Definition at line 49 of file cf_model.hpp.
|
inline |
Create the object. The base class has nothing to hold.
Definition at line 53 of file cf_model.hpp.
References CFWrapperBase::Clone().
|
inlinevirtual |
Delete the object.
Definition at line 59 of file cf_model.hpp.
References CFWrapperBase::GetRecommendations(), and CFWrapperBase::Predict().
|
pure virtual |
Make a copy of the object.
Implemented in CFWrapper< DecompositionPolicy, NormalizationPolicy >.
Referenced by CFWrapperBase::CFWrapperBase().
|
pure virtual |
Compute recommendations for all users.
Implemented in CFWrapper< DecompositionPolicy, NormalizationPolicy >.
Referenced by CFWrapper< DecompositionPolicy, NormalizationPolicy >::CF(), CFModel::NormalizationType(), and CFWrapperBase::~CFWrapperBase().
|
pure virtual |
Compute recommendations.
Implemented in CFWrapper< DecompositionPolicy, NormalizationPolicy >.
|
pure virtual |
Compute predictions for users.
Implemented in CFWrapper< DecompositionPolicy, NormalizationPolicy >.
Referenced by CFWrapper< DecompositionPolicy, NormalizationPolicy >::CF(), CFModel::NormalizationType(), and CFWrapperBase::~CFWrapperBase().