irisdata

Crates.ioirisdata
lib.rsirisdata
version0.1.2
sourcesrc
created_at2022-11-26 06:58:15.426116
updated_at2022-11-28 14:53:05.786633
descriptionIn-memory version of Fisher's Iris dataset.
homepagehttps://github.com/aeshirey/irisdata/
repositoryhttps://github.com/aeshirey/irisdata/
max_upload_size
id723124
size40,036
Adam Shirey (aeshirey)

documentation

README

irisdata

Fisher's Iris data set. Add this to your project with cargo add irisdata, then you can use these data however you want:

let virginica_avg_petal_length = irisdata::IRIS_DATA
    .iter()
    .filter_map(|i| {
        if i.species == Species::IrisVirginica {
            Some(i.petal_length)
        } else {
            None
        }
    })
    .sum::<f32>()
    / 50.;

assert_eq!(5.5520005, avg);
Commit count: 4

cargo fmt