GraphAware\Reco4PHP\Demo\Github\PenalizeTooMuchFollowers::postProcess PHP Method

postProcess() public method

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