You are here

public function CFRecommender::execute in Recommender API 7.6

Do all computation here.

Return value

null

Overrides RecommenderInterface::execute

File

classes/Recommender.php, line 181

Class

CFRecommender
This is the classical collaborative filtering implementation.

Code

public function execute() {

  // load preference data into database.
  $this
    ->loadPreference();

  // compute user-similarities.
  $this
    ->computeSimilarity();

  // compute predictions.
  $this
    ->computePrediction();
}