mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-09-29 07:29:01 +00:00
16 lines
331 B
PHP
16 lines
331 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Phpml;
|
|
|
|
interface Transformer
|
|
{
|
|
/**
|
|
* most transformers don't require targets to train so null allow to use fit method without setting targets
|
|
*/
|
|
public function fit(array $samples, ?array $targets = null): void;
|
|
|
|
public function transform(array &$samples): void;
|
|
}
|