cryores.experiments.data package
Submodules
cryores.experiments.data.base module
- class cryores.experiments.data.base.Dataset
Bases:
ABC
Collection of tabular data and key-value parameters.
- abstract add_data(data: DataFrame, metadata: dict) None
- abstract classmethod load(path: str, name: str)
Create a Dataset from one or more files.
- abstract save(path, name)
Save the dataset to the given path with the prefix name.
The name should not include any file extension, as this dataset may be represented by more than one file.
cryores.experiments.data.csv_json module
Dataset implementation using CSV for table data and JSON for metadata.
- class cryores.experiments.data.csv_json.CsvJsonDataset
Bases:
Dataset
Save Pandas DataFrame and JSON-compatible dictionaries as CSV and JSON.
Every dataset will be specified by a name and have a corresponding .csv and .json file.
- add_data(data: DataFrame, metadata: dict) None
- classmethod load(path: str, name: str)
Create a Dataset from one or more files.
- save(path: str, name: str)
Save the dataset to the given path with the prefix name.
The name should not include any file extension, as this dataset may be represented by more than one file.
cryores.experiments.data.simple module
Simple in-memory dataset. Use for testing only.