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:35:49 +00:00
|
|
|
public function __construct()
|
2016-04-07 20:19:04 +00:00
|
|
|
{
|
|
|
|
$filepath = dirname(__FILE__).'/../../../../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
|
|
|
}
|