You are here

function recommender_top_prediction in Recommender API 6.3

Same name and namespace in other branches
  1. 6.2 recommender.module \recommender_top_prediction()
  2. 7.3 recommender.module \recommender_top_prediction()
  3. 7.4 recommender.module \recommender_top_prediction()

Return a list of items that are top prediction for $id

Parameters

$app_name The $app_name for the depending modules:

$id usually the $node_id of the target item.:

$top_n how many predictions to return:

$test_func optional function to test whether an item satisfy some conditions:

Return value

an array of the most similar items to $id.

File

./recommender.module, line 116
Providing generic recommender system algorithms.

Code

function recommender_top_prediction($app_name, $id, $top_n, $test_func = NULL) {
  return _recommender_generic_top($app_name, $id, $top_n, '{recommender_prediction}');
}