The graphium/data directory contains the core components for managing data lifecycles in Graphium. It provides tools for loading data from disk, processing it into PyTorch DataLoaders, and defining custom datasets and transformations.
Key components include:
- Data Loading & Processing:
datamodule.py handles loading from disk and processing into a DataLoader; utils.py provides utility functions for dataset loading. - Dataset & Collation:
dataset.py defines the dataset class; collate.py defines the collation function used by the DataLoader. - Transformations & Normalization:
smiles_transform.py transforms SMILES strings into molecule objects; normalization.py handles label normalization. - Specialized Converters:
sdf2csv.py provides conversion functions from SDF to CSV specifically for the OGB PCQM dataset.