mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-26 06:46:45 +00:00
22 lines
330 B
PHP
22 lines
330 B
PHP
<?php
|
|
|
|
declare (strict_types = 1);
|
|
|
|
namespace Phpml;
|
|
|
|
interface Estimator
|
|
{
|
|
/**
|
|
* @param array $samples
|
|
* @param array $targets
|
|
*/
|
|
public function train(array $samples, array $targets);
|
|
|
|
/**
|
|
* @param array $samples
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function predict(array $samples);
|
|
}
|