PHP Class GraphAware\Reco4PHP\Engine\SingleDiscoveryEngine

Inheritance: extends GraphAware\Reco4PHP\Transactional\BaseCypherAware, implements GraphAware\Reco4PHP\Engine\DiscoveryEngine
Afficher le fichier Open project: graphaware/reco4php

Méthodes publiques

Méthode Description
buildScore ( GraphAware\Common\Type\Node $input, GraphAware\Common\Type\Node $item, GraphAware\Common\Result\Record $record, GraphAware\Reco4PHP\Context\Context $context ) : SingleScore
defaultScore ( ) : float
produceRecommendations ( GraphAware\Common\Type\Node $input, GraphAware\Common\Result\ResultCollection $resultCollection, GraphAware\Reco4PHP\Context\Context $context ) : Recommendations
reasonResultName ( ) : string
recoResultName ( ) : string
scoreResultName ( ) : string

Method Details

buildScore() public méthode

public buildScore ( GraphAware\Common\Type\Node $input, GraphAware\Common\Type\Node $item, GraphAware\Common\Result\Record $record, GraphAware\Reco4PHP\Context\Context $context ) : SingleScore
$input GraphAware\Common\Type\Node
$item GraphAware\Common\Type\Node
$record GraphAware\Common\Result\Record
$context GraphAware\Reco4PHP\Context\Context
Résultat GraphAware\Reco4PHP\Result\SingleScore

defaultScore() public méthode

public defaultScore ( ) : float
Résultat float

produceRecommendations() final public méthode

final public produceRecommendations ( GraphAware\Common\Type\Node $input, GraphAware\Common\Result\ResultCollection $resultCollection, GraphAware\Reco4PHP\Context\Context $context ) : Recommendations
$input GraphAware\Common\Type\Node
$resultCollection GraphAware\Common\Result\ResultCollection
$context GraphAware\Reco4PHP\Context\Context
Résultat GraphAware\Reco4PHP\Result\Recommendations

reasonResultName() public méthode

public reasonResultName ( ) : string
Résultat string

recoResultName() public méthode

public recoResultName ( ) : string
Résultat string

scoreResultName() public méthode

public scoreResultName ( ) : string
Résultat string