2016-02-28 21:54:21 +00:00
|
|
|
<?php
|
|
|
|
|
2016-04-06 19:46:17 +00:00
|
|
|
declare (strict_types = 1);
|
|
|
|
|
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
|
2016-04-06 20:38:08 +00:00
|
|
|
* Features per sample: 4.
|
2016-04-06 19:46:17 +00:00
|
|
|
*/
|
2016-04-06 20:38:08 +00:00
|
|
|
class Iris extends CsvDataset
|
2016-02-28 21:54:21 +00:00
|
|
|
{
|
|
|
|
/**
|
2016-04-07 20:19:04 +00:00
|
|
|
* @param string|null $filepath
|
2016-02-28 21:54:21 +00:00
|
|
|
*/
|
2016-04-07 20:19:04 +00:00
|
|
|
public function __construct(string $filepath = null)
|
|
|
|
{
|
|
|
|
$filepath = dirname(__FILE__).'/../../../../data/iris.csv';
|
|
|
|
parent::__construct($filepath);
|
|
|
|
}
|
2016-02-28 21:54:21 +00:00
|
|
|
}
|