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;
|
|
|
|
|
2016-04-04 20:25:27 +00:00
|
|
|
class NaiveBayes implements Classifier
|
2016-02-09 06:45:07 +00:00
|
|
|
{
|
2016-04-04 20:25:27 +00:00
|
|
|
/**
|
2016-04-05 19:06:53 +00:00
|
|
|
* @param array $samples
|
2016-04-04 20:25:27 +00:00
|
|
|
* @param array $labels
|
|
|
|
*/
|
2016-04-05 19:06:53 +00:00
|
|
|
public function train(array $samples, array $labels)
|
2016-04-04 20:25:27 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2016-04-08 20:25:15 +00:00
|
|
|
* @param array $samples
|
2016-04-04 20:49:54 +00:00
|
|
|
*
|
2016-04-04 20:25:27 +00:00
|
|
|
* @return mixed
|
|
|
|
*/
|
2016-04-08 20:25:15 +00:00
|
|
|
public function predict(array $samples)
|
2016-04-04 20:25:27 +00:00
|
|
|
{
|
|
|
|
}
|
2016-02-09 06:45:07 +00:00
|
|
|
}
|