Свойство | Type | Description | |
---|---|---|---|
$dataSource | Camspiers\StatisticalClassifier\DataSource\DataSourceInterface | ||
$model | Camspiers\StatisticalClassifier\Model\ModelInterface | The model to apply the transforms to |
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é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 |
protected applyTransform ( callable $transform ) : mixed | ||
$transform | callable | |
Résultat | mixed |
abstract public prepareModel ( ) : null | ||
Résultat | null |
protected preparedModel ( ) : Camspiers\StatisticalClassifier\Model\ModelInterface | ||
Résultat | Camspiers\StatisticalClassifier\Model\ModelInterface |
public setDataSource ( Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $dataSource ) | ||
$dataSource | Camspiers\StatisticalClassifier\DataSource\DataSourceInterface |
public setModel ( Camspiers\StatisticalClassifier\Model\ModelInterface $model ) | ||
$model | Camspiers\StatisticalClassifier\Model\ModelInterface |
protected DataSourceInterface,Camspiers\StatisticalClassifier\DataSource $dataSource | ||
Résultat | Camspiers\StatisticalClassifier\DataSource\DataSourceInterface |