The Iris flower data set as an elm data structure.
This package exposes the iris data set as a list of records, for easy experimentation with various classification methods. The source is here.
data : List Iris
The data records
{ sepal : { length : Length
, width : Length }
, petal : { length : Length
, width : Length }
, class : Species
}
An iris data point. Uses the ianmackenzie/elm-units
Length
type.
The three different species of iris in this data set
speciesToString : Species -> String
Turn a species into a string
classToString Setosa
--> "setosa"
averageIndividuals : { setosa : Iris, versicolour : Iris, virginica : Iris }
The average individual (mean) of each class. Useful to get the error of your classification.