2016-04-08 22:36:48 +00:00
|
|
|
# Iris Dataset
|
|
|
|
|
|
|
|
Most popular and widely available dataset of iris flower measurement and class names.
|
|
|
|
|
|
|
|
### Specification
|
|
|
|
|
|
|
|
| Classes | 3 |
|
|
|
|
| Samples per class | 50 |
|
|
|
|
| Samples total | 150 |
|
|
|
|
| Features per sample | 4 |
|
|
|
|
|
|
|
|
### Load
|
|
|
|
|
|
|
|
To load Iris dataset simple use:
|
|
|
|
|
|
|
|
```
|
2017-04-13 19:34:55 +00:00
|
|
|
use Phpml\Dataset\Demo\IrisDataset;
|
2016-05-10 21:44:28 +00:00
|
|
|
|
2017-04-13 19:34:55 +00:00
|
|
|
$dataset = new IrisDataset();
|
2016-04-08 22:36:48 +00:00
|
|
|
```
|
|
|
|
|
2016-05-02 11:49:19 +00:00
|
|
|
### Several samples example
|
2016-04-08 22:36:48 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
sepal length,sepal width,petal length,petal width,class
|
|
|
|
5.1,3.5,1.4,0.2,Iris-setosa
|
|
|
|
4.9,3.0,1.4,0.2,Iris-setosa
|
|
|
|
4.7,3.2,1.3,0.2,Iris-setosa
|
|
|
|
7.0,3.2,4.7,1.4,Iris-versicolor
|
|
|
|
6.4,3.2,4.5,1.5,Iris-versicolor
|
|
|
|
6.9,3.1,4.9,1.5,Iris-versicolor
|
|
|
|
6.3,3.3,6.0,2.5,Iris-virginica
|
|
|
|
5.8,2.7,5.1,1.9,Iris-virginica
|
|
|
|
7.1,3.0,5.9,2.1,Iris-virginica
|
|
|
|
6.3,2.9,5.6,1.8,Iris-virginicacs
|
|
|
|
```
|