\Camspiers\StatisticalClassifier\ClassifierClassifier

A generic classifier which can be used to built a classifier given a number of injected components

Summary

Methods
Properties
Constants
is()
prepareModel()
setModel()
setDataSource()
No public properties found
No constants found
preparedModel()
applyTransform()
$dataSource
$model
N/A
No private methods found
No private properties found
N/A

Properties

Methods

is()

is( $category,  $document)

Parameters

$category
$document

prepareModel()

prepareModel() : null

Builds the model from the data source by applying transforms to the data source

Returns

null

applyTransform()

applyTransform(callable $transform) : mixed

Take a callable and run it passing in any additionally specified arguments

Parameters

callable $transform

Throws

\RuntimeException

Returns

mixed