You are here

public function ItemBasedBooleanRecommender::initialize in Recommender API 7.6

Initialize the recommender settings from $params. No complexity should be introduced here.

Parameters

$params:

Return value

null

Overrides ItemBasedRecommender::initialize

File

classes/Recommender.php, line 256

Class

ItemBasedBooleanRecommender

Code

public function initialize($params) {

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