| 1 | <?php |
||
| 9 | class ArrayDataset implements Dataset |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | protected $samples = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $targets = []; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param array $samples |
||
| 23 | * @param array $targets |
||
| 24 | * |
||
| 25 | * @throws InvalidArgumentException |
||
| 26 | */ |
||
| 27 | public function __construct(array $samples, array $targets) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | public function getSamples(): array |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return array |
||
| 47 | */ |
||
| 48 | public function getTargets(): array |
||
| 52 | } |
||
| 53 |