datasets

Classical data sets for statistics and machine learning

https://github.com/glutamate/datasets

Version on this page:0.2.0.3
LTS Haskell 20.26:0.4.0
Stackage Nightly 2022-11-17:0.4.0
Latest on Hackage:0.4.0

See all snapshots datasets appears in

MIT licensed and maintained by Tom Nielsen
This version can be pinned in stack with:datasets-0.2.0.3@sha256:6d3710bdca01de249e7da96c13fdb46454332d855ecf53b628ec27145b8fae67,3329

Classical machine learning and statistics datasets from the UCI Machine Learning Repository and other sources.

The datasets package defines two different kinds of datasets:

  • small data sets which are directly (or indirectly with `file-embed`) embedded in the package as pure values and do not require network or IO to download the data set. This includes Iris, Anscombe and OldFaithful.

  • other data sets which need to be fetched over the network with Numeric.Datasets.getDataset and are cached in a local temporary directory.

import Numeric.Datasets (getDataset)
import Numeric.Datasets.Iris (iris)
import Numeric.Datasets.Abalone (abalone)

main = do
  -- The Iris data set is embedded
  print (length iris)
  print (head iris)
  -- The Abalone dataset is fetched
  abas <- getDataset abalone
  print (length abas)
  print (head abas)

Changes

0.2.0.3

  • Further GHC portability

0.2.0.2

  • Improve GHC portability

0.2.0.1

  • Bugfix: include embedded data files in cabal extra-source-files

0.2

  • iris dataset is a pure value (with file-embed)

  • Michelson, Nightingale and BostonHousing datasets