irisdata 0.1.2

In-memory version of Fisher's Iris dataset.
Documentation
  • Coverage
  • 75%
    9 out of 12 items documented0 out of 2 items with examples
  • Size
  • Source code size: 39.71 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • aeshirey/irisdata
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aeshirey

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);