Module: datasets

cesium.datasets.fetch_andrzejak([data_dir])

Download (if not already downloaded) and load an example EEG dataset.

cesium.datasets.fetch_asas_training([data_dir])

Download (if not already downloaded) and load example light curve data.

fetch_andrzejak

cesium.datasets.fetch_andrzejak(data_dir=None)

Download (if not already downloaded) and load an example EEG dataset.

Parameters:
data_dirstr, optional

Path where downloaded data should be stored. Defaults to a subdirectory datasets/andrzejak within dsutil.DATA_PATH.

Returns:
dict
Dictionary with attributes:
  • times: list of (4096,) arrays of time values

  • measurements: list of (4096,) arrays of measurement values

  • classes: array of class labels for each time series

  • archive: path to data archive

  • header: path to header file

References

Andrzejak, Ralph G., et al. “Indications of nonlinear deterministic and finite-dimensional structures in time series of brain electrical activity: Dependence on recording region and brain state.” Phys. Rev. E 64.6 (2001): 061907.

fetch_asas_training

cesium.datasets.fetch_asas_training(data_dir=None)

Download (if not already downloaded) and load example light curve data.

Parameters:
data_dir: str, optional

Path where downloaded data should be stored. Defaults to a subdirectory datasets/asas_training within dsutil.DATA_PATH.

Returns:
dict
Dictionary attributes:
  • times: list of arrays of time values

  • measurements: list of arrays of measurement values

  • errors: list of arrays of error values

  • classes: Series of classes for each time series indexed by file

  • metadata: DataFrame of metafeature values indexed by file

  • archive: path to data archive

  • header: path to header file

References

Richards, J. W., Starr, D. L., Miller, A. a., Bloom, J. S., Butler, N. R., Brink, H., & Crellin-Quick, A. (2012). Construction of a Calibrated Probabilistic Classification Catalog: Application to 50k Variable Sources in the All-Sky Automated Survey. The Astrophysical Journal Supplement Series, 203(2), 32. http://doi.org/10.1088/0067-0049/203/2/32