You are here

function recommender_top_prediction in Recommender API 7.3

Same name and namespace in other branches
  1. 6.3 recommender.module \recommender_top_prediction()
  2. 6.2 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 114
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}');
}