peal.data.custom_datasets.RxRx1AugmentedDataset¶
- class peal.data.custom_datasets.RxRx1AugmentedDataset[source]¶
Bases:
Image2MixedDatasetRxRx1 exported into PEAL’s
imgs/plusdata.csvlayout.On first use every WILDS sample is written to
<dataset_path>/imgs/<7 digit index>.pngand adata.csvwith the columnsimg, label, confounderis created, the confounder being the first WILDS metadata field (cell_type).- Parameters:
config (
DataConfig) – Usesdataset_path.**kwargs – Forwarded to
Image2MixedDataset.
Methods
Attributes
- __init__(config, **kwargs)[source]¶
Export the WILDS images into the csv layout if they are missing.
- Raises:
ImportError – If the images still have to be exported and the optional
wildsdependency is not installed.