GraphAware\Reco4PHP\Tests\Example\ExampleRecommenderService::recommendMovieForUserWithId PHP Méthode

recommendMovieForUserWithId() public méthode

public recommendMovieForUserWithId ( integer $id ) : Recommendations
$id integer
Résultat GraphAware\Reco4PHP\Result\Recommendations
    public function recommendMovieForUserWithId($id)
    {
        $input = $this->service->findInputBy('User', 'id', $id);
        $recommendationEngine = $this->service->getRecommender("user_movie_reco");
        return $recommendationEngine->recommend($input, new SimpleContext());
    }