function CorrelationRecommender::_computePredictionMemory in Recommender API 6.2
File
- ./
Recommender.php, line 513
Class
- CorrelationRecommender
- The recommender implementation for the classical correlation-coefficient based algorithm
Code
function _computePredictionMemory() {
$m = $this
->getMouseNum();
$this->predictionMatrix = Matrix::create('SparseMatrix', $m, $n);
$mouseVectors = $this->directMatrix
->row_vectors();
foreach ($this->mouseMap as $mouse_id => $mouse_index) {
foreach ($this->cheeseMap as $cheese_id => $cheese_index) {
}
}
}