php-ml/src/Phpml/Dataset/Demo/IrisDataset.php

23 lines
385 B
PHP
Raw Normal View History

2016-02-28 21:54:21 +00:00
<?php
2016-11-20 21:53:17 +00:00
declare(strict_types=1);
2016-04-06 19:46:17 +00:00
2016-04-07 20:12:36 +00:00
namespace Phpml\Dataset\Demo;
use Phpml\Dataset\CsvDataset;
2016-04-06 19:46:17 +00:00
/**
* Classes: 3
* Samples per class: 50
* Samples total: 150
* Features per sample: 4.
2016-04-06 19:46:17 +00:00
*/
class IrisDataset extends CsvDataset
2016-02-28 21:54:21 +00:00
{
2016-04-07 20:35:49 +00:00
public function __construct()
2016-04-07 20:19:04 +00:00
{
2016-12-12 17:45:14 +00:00
$filepath = __DIR__.'/../../../../data/iris.csv';
2016-04-07 20:35:49 +00:00
parent::__construct($filepath, 4, true);
2016-04-07 20:19:04 +00:00
}
2016-02-28 21:54:21 +00:00
}