PHP Class Camspiers\StatisticalClassifier\Classifier\Classifier

Author: Cam Spiers ([email protected])
Inheritance: implements Camspiers\StatisticalClassifier\Classifier\ClassifierInterface
Afficher le fichier Open project: camspiers/statistical-classifier

Protected Properties

Свойство Type Description
$dataSource Camspiers\StatisticalClassifier\DataSource\DataSourceInterface
$model Camspiers\StatisticalClassifier\Model\ModelInterface The model to apply the transforms to

Méthodes publiques

Méthode Description
is ( $category, $document )
prepareModel ( ) : null Builds the model from the data source by applying transforms to the data source
setDataSource ( Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource )
setModel ( Camspiers\StatisticalClassifier\Model\ModelInterface $model )

Méthodes protégées

Méthode Description
applyTransform ( callable $transform ) : mixed Take a callable and run it passing in any additionally specified arguments
preparedModel ( ) : Camspiers\StatisticalClassifier\Model\ModelInterface Return an model which has been prepared for classification

Method Details

applyTransform() protected méthode

Take a callable and run it passing in any additionally specified arguments
protected applyTransform ( callable $transform ) : mixed
$transform callable
Résultat mixed

is() public méthode

public is ( $category, $document )

prepareModel() abstract public méthode

Builds the model from the data source by applying transforms to the data source
abstract public prepareModel ( ) : null
Résultat null

preparedModel() protected méthode

Return an model which has been prepared for classification
protected preparedModel ( ) : Camspiers\StatisticalClassifier\Model\ModelInterface
Résultat Camspiers\StatisticalClassifier\Model\ModelInterface

setDataSource() public méthode

public setDataSource ( Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource )
$dataSource Camspiers\StatisticalClassifier\DataSource\DataSourceInterface

setModel() public méthode

public setModel ( Camspiers\StatisticalClassifier\Model\ModelInterface $model )
$model Camspiers\StatisticalClassifier\Model\ModelInterface

Property Details

$dataSource protected_oe property

protected DataSourceInterface,Camspiers\StatisticalClassifier\DataSource $dataSource
Résultat Camspiers\StatisticalClassifier\DataSource\DataSourceInterface

$model protected_oe property

The model to apply the transforms to
protected ModelInterface,Camspiers\StatisticalClassifier\Model $model
Résultat Camspiers\StatisticalClassifier\Model\ModelInterface