protected function Recommender::getCheeseNum in Recommender API 6.2
2 calls to Recommender::getCheeseNum()
- CorrelationRecommender::computePredictionMemory in ./
Recommender.php - Recommender::loadDirectMatrix in ./
Recommender.php - Load matrix from the database into a matrix class in memory
File
- ./
Recommender.php, line 231
Class
- Recommender
- The super class for all other Recommender algorithms.
Code
protected function getCheeseNum($may_cache = TRUE) {
if (!$may_cache || $this->cheeseNum == NULL) {
//if (isset($this->cheeseMap)) {
// $this->cheeseNum = count($this->cheeseMap);
//} else {
$this->cheeseNum = $this
->getEntityNum($this->fieldCheese);
//}
}
return $this->cheeseNum;
}