Inheritance: extends ArrayDataset
Beispiel #1
0
 public function testSampleCsvDatasetWithoutHeaderRow()
 {
     $filePath = dirname(__FILE__) . '/Resources/dataset.csv';
     $dataset = new CsvDataset($filePath, 2, false);
     $this->assertEquals(11, count($dataset->getSamples()));
     $this->assertEquals(11, count($dataset->getTargets()));
 }
Beispiel #2
0
 public function __construct()
 {
     $filepath = dirname(__FILE__) . '/../../../../data/wine.csv';
     parent::__construct($filepath, 13, true);
 }