public function Recommender::computePrediction in Recommender API 6.2
2 methods override Recommender::computePrediction()
File
- ./
Recommender.php, line 308
Class
- Recommender
- The super class for all other Recommender algorithms.
Code
public function computePrediction() {
watchdog("recommender", "Computing prediction. Might take a long time. Please be patient.");
switch ($this->performance) {
case 'database':
$this
->prepareData('database', $this->missing);
$this
->computePredictionDatabase();
break;
case 'java':
$this
->computePredictionJava();
break;
case 'memory':
case 'auto':
default:
$this
->prepareData('memory', $this->missing);
$this
->loadSimilarityMatrix();
// need to load similarity matrix too.
$this
->computePredictionMemory();
}
// $this->purgeOutdatedRecords();
}