public function Recommender::computeSimilarity in Recommender API 6.2
1 method overrides Recommender::computeSimilarity()
File
- ./
Recommender.php, line 265
Class
- Recommender
- The super class for all other Recommender algorithms.
Code
public function computeSimilarity() {
watchdog("recommender", "Computing similarity. Might take a long time. Please be patient.");
switch ($this->performance) {
case 'database':
$this
->prepareData('database', $this->missing);
$this
->computeSimilarityDatabase();
break;
case 'java':
$this
->computeSimilarityJava();
break;
case 'memory':
case 'auto':
default:
$this
->prepareData('memory', $this->missing);
$this
->computeSimilarityMemory();
}
// $this->purgeOutdatedRecords('similarity');
}