public recommendMovieForUserWithId ( integer $id ) : |
||
$id | integer | |
return |
public function recommendMovieForUserWithId($id)
{
$input = $this->service->findInputBy('User', 'id', $id);
$recommendationEngine = $this->service->getRecommender("user_movie_reco");
return $recommendationEngine->recommend($input, new SimpleContext());
}