mlpack
Public Member Functions | List of all members
mlpack::cf::CFWrapperBase Class Referenceabstract

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>

Inheritance diagram for mlpack::cf::CFWrapperBase:
Inheritance graph
[legend]

Public Member Functions

 CFWrapperBase ()
 Create the object. The base class has nothing to hold.
 
virtual CFWrapperBaseClone () 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.
 

Detailed Description

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.


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