function rec_example_apps in Recommender API 7.3
Implements hook_install().
File
- rec_example/
rec_example.install, line 12 - Installation file for the rec_example module.
Code
function rec_example_apps() {
return array(
'rec_example' => array(
'title' => st('Recommender API Example on GroupLens data'),
'params' => array(
'algorithm' => 'item2item',
'table' => '{recommender_preference_staging}',
'fields' => array(
'source_eid',
'target_eid',
'score',
'updated',
),
// this would help Views figure out which base table to join. currently not used.
'entity_type' => array(
'similarity' => array(
'node',
'node',
),
'prediction' => array(
'users',
'node',
),
),
'performance' => 'memory',
'preference' => 'score',
),
),
'rec_example_update' => array(
'title' => st('Recommender API Example on GroupLens data (incremental update)'),
'params' => array(
'algorithm' => 'item2item_increment',
'base_app_name' => 'rec_example',
'table' => '{recommender_preference_staging}',
'fields' => array(
'source_eid',
'target_eid',
'score',
'updated',
),
// this would help Views figure out which base table to join. currently not used.
'entity_type' => array(
'similarity' => array(
'node',
'node',
),
'prediction' => array(
'users',
'node',
),
),
'performance' => 'memory',
'preference' => 'score',
),
),
);
}