folkertdev / elm-iris / Iris

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


type alias Iris =
{ sepal : { length : Length
, width : Length }
, petal : { length : Length
, width : Length }
, class : Species 
}

An iris data point. Uses the ianmackenzie/elm-units Length type.

Species


type Species
    = Setosa
    | Versicolour
    | Virginica

The three different species of iris in this data set

speciesToString : Species -> String

Turn a species into a string

classToString Setosa
    --> "setosa"

Helpers

averageIndividuals : { setosa : Iris, versicolour : Iris, virginica : Iris }

The average individual (mean) of each class. Useful to get the error of your classification.