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...

Inheritance diagram for CFWrapperBase:

Public Member Functions

 CFWrapperBase ()
 Create the object. The base class has nothing to hold. More...

 
virtual ~CFWrapperBase ()
 Delete the object. More...

 
virtual CFWrapperBaseClone () 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...

 

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.

Definition at line 49 of file cf_model.hpp.

Constructor & Destructor Documentation

◆ CFWrapperBase()

CFWrapperBase ( )
inline

Create the object. The base class has nothing to hold.

Definition at line 53 of file cf_model.hpp.

References CFWrapperBase::Clone().

◆ ~CFWrapperBase()

virtual ~CFWrapperBase ( )
inlinevirtual

Delete the object.

Definition at line 59 of file cf_model.hpp.

References CFWrapperBase::GetRecommendations(), and CFWrapperBase::Predict().

Member Function Documentation

◆ Clone()

virtual CFWrapperBase* Clone ( ) const
pure virtual

Make a copy of the object.

Implemented in CFWrapper< DecompositionPolicy, NormalizationPolicy >.

Referenced by CFWrapperBase::CFWrapperBase().

◆ GetRecommendations() [1/2]

virtual void GetRecommendations ( const NeighborSearchTypes  nsType,
const InterpolationTypes  interpolationType,
const size_t  numRecs,
arma::Mat< size_t > &  recommendations 
)
pure virtual

◆ GetRecommendations() [2/2]

virtual void GetRecommendations ( const NeighborSearchTypes  nsType,
const InterpolationTypes  interpolationType,
const size_t  numRecs,
arma::Mat< size_t > &  recommendations,
const arma::Col< size_t > &  users 
)
pure virtual

Compute recommendations.

Implemented in CFWrapper< DecompositionPolicy, NormalizationPolicy >.

◆ Predict()

virtual void Predict ( const NeighborSearchTypes  nsType,
const InterpolationTypes  interpolationType,
const arma::Mat< size_t > &  combinations,
arma::vec &  predictions 
)
pure virtual

The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/methods/cf/cf_model.hpp