$config
$config : array
Holds the config from the config.json files
$classifier : \Camspiers\StatisticalClassifier\Classifier\Classifier
Holds the classifier instance for caching
getChanges(\Symfony\Component\Console\Input\InputInterface $input) : \Camspiers\StatisticalClassifier\DataSource\DataArray
\Symfony\Component\Console\Input\InputInterface | $input |
execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output) : null
Train a classifier with a datasource
\Symfony\Component\Console\Input\InputInterface | $input | The commands input |
\Symfony\Component\Console\Output\OutputInterface | $output | The commands output |
updateSummary(\Symfony\Component\Console\Output\OutputInterface $output, \Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $changes, \Camspiers\StatisticalClassifier\DataSource\DataSourceInterface $current) : null
Outputs a summary of what has changes in the model
\Symfony\Component\Console\Output\OutputInterface | $output | The output object |
\Camspiers\StatisticalClassifier\DataSource\DataSourceInterface | $changes | The data source with changes |
\Camspiers\StatisticalClassifier\DataSource\DataSourceInterface | $current | The grouped data source |
configureClassifier() : \Camspiers\StatisticalClassifier\Console\Command\Command
Adds options nessacary for calling getClassifier in a command
This command to allow chaining
configureModel() : \Camspiers\StatisticalClassifier\Console\Command\Command
Adds arguments required for using a specified model in a command
This command to allow chaining
configurePrepare() : \Camspiers\StatisticalClassifier\Console\Command\Command
Adds options to allow automatically prepare the model
This command to allow chaining
getModel(string $name, bool $svm) : \Camspiers\StatisticalClassifier\Model\CachedModel
Get an CachedModel based off a model name and the Cache instance
string | $name | The name of the model |
bool | $svm |
The cached model
getDataSource(mixed $name) : \Camspiers\StatisticalClassifier\DataSource\DataArray
mixed | $name |
getContainer() : \Camspiers\StatisticalClassifier\Console\Command\Symfony\Component\DependencyInjection\ContainerInterface
Return the dependency injection container fetching it off the app if it doesn't exist
The container
getClassifier(\Symfony\Component\Console\Input\InputInterface $input) : \Camspiers\StatisticalClassifier\Classifier\Classifier
Returns a classifier based of the commands input and the specified model (if exists)
\Symfony\Component\Console\Input\InputInterface | $input | The commands input |
The built classifier