You are here

class CFBooleanRecommender in Recommender API 7.6

Hierarchy

Expanded class hierarchy of CFBooleanRecommender

File

classes/Recommender.php, line 245

View source
class CFBooleanRecommender extends CFRecommender {
  public function initialize($params) {

    // do a simple trick of inverse item/user fields.
    parent::initialize($params);
    $this->structure['preference']['score type'] = 'boolean';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CFBooleanRecommender::initialize public function Initialize the recommender settings from $params. No complexity should be introduced here. Overrides CFRecommender::initialize
CFRecommender::$isBooleanRecommender protected property
CFRecommender::$itemMap protected property
CFRecommender::$itemNum protected property
CFRecommender::$predictionMatrix protected property
CFRecommender::$preferenceMatrix protected property
CFRecommender::$similarityMatrix protected property
CFRecommender::$structure protected property
CFRecommender::$timestamp protected property
CFRecommender::$userMap protected property
CFRecommender::$userNum protected property
CFRecommender::$userVectors protected property
CFRecommender::computePrediction protected function
CFRecommender::computeSimilarity protected function
CFRecommender::execute public function Do all computation here. Overrides RecommenderInterface::execute
CFRecommender::finalize public function Save data to database, etc. Overrides RecommenderInterface::finalize 1
CFRecommender::loadPreference protected function Load matrix from the database into a matrix class in memory
CFRecommender::saveMatrix protected function