mlpack
|
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...
#include <cf_model.hpp>
Public Member Functions | |
CFWrapperBase () | |
Create the object. The base class has nothing to hold. | |
virtual CFWrapperBase * | Clone () const =0 |
Make a copy of the object. | |
virtual | ~CFWrapperBase () |
Delete the object. | |
virtual void | Predict (const NeighborSearchTypes nsType, const InterpolationTypes interpolationType, const arma::Mat< size_t > &combinations, arma::vec &predictions)=0 |
Compute predictions for users. | |
virtual void | GetRecommendations (const NeighborSearchTypes nsType, const InterpolationTypes interpolationType, const size_t numRecs, arma::Mat< size_t > &recommendations)=0 |
Compute recommendations for all users. | |
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. | |
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.