Inheritance: implements Phpml\Dataset\Dataset
Exemplo n.º 1
0
 public function testArrayDataset()
 {
     $dataset = new ArrayDataset($samples = [[1], [2], [3], [4]], $labels = ['a', 'a', 'b', 'b']);
     $this->assertEquals($samples, $dataset->getSamples());
     $this->assertEquals($labels, $dataset->getTargets());
 }