php-ml/src/Phpml/Classifier/Classifier.php

22 lines
336 B
PHP
Raw Normal View History

2016-02-09 06:45:07 +00:00
<?php
2016-04-04 20:49:54 +00:00
declare (strict_types = 1);
2016-02-09 06:45:07 +00:00
namespace Phpml\Classifier;
interface Classifier
{
/**
* @param array $features
* @param array $labels
*/
2016-04-04 20:25:27 +00:00
public function train(array $features, array $labels);
2016-02-09 06:45:07 +00:00
/**
* @param mixed $feature
2016-04-04 20:49:54 +00:00
*
2016-02-09 06:45:07 +00:00
* @return mixed
*/
public function predict($feature);
}