GraphAware\Reco4PHP\Demo\Github\PenalizeTooMuchFollowers::postProcess PHP 메소드

postProcess() 공개 메소드

public postProcess ( GraphAware\Common\Type\Node $input, Recommendation $recommendation, GraphAware\Common\Result\Record $record )
$input GraphAware\Common\Type\Node
$recommendation GraphAware\Reco4PHP\Result\Recommendation
$record GraphAware\Common\Result\Record
    public function postProcess(Node $input, Recommendation $recommendation, Record $record)
    {
        $recommendation->addScore($this->name(), new SingleScore(-$record->get('followersCount') / 50));
    }
PenalizeTooMuchFollowers