| 1 | <?php |
||
| 7 | final class LabelEncoder implements Preprocessor |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int[] |
||
| 11 | */ |
||
| 12 | private $classes = []; |
||
| 13 | |||
| 14 | public function fit(array $samples, ?array $targets = null): void |
||
| 24 | |||
| 25 | public function transform(array &$samples): void |
||
| 31 | |||
| 32 | public function inverseTransform(array &$samples): void |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string[] |
||
| 42 | */ |
||
| 43 | public function classes(): array |
||
| 47 | } |
||
| 48 |