Data and I/O
Data handling utilities and model artifact download helpers.
Data module
project_name.data
QM9Dataset
Bases: Dataset
QM9 dataset wrapper from torch_geometric.
Source code in src/project_name/data.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
__getitem__
__getitem__(index: int)
Return a given sample from the dataset.
Source code in src/project_name/data.py
39 40 41 | |
__init__
__init__(data_path: Path) -> None
Initialize the QM9 dataset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_path |
Path
|
Path to the data directory where QM9 will be stored. |
required |
Source code in src/project_name/data.py
10 11 12 13 14 15 16 17 | |
__len__
__len__() -> int
Return the length of the dataset.
Source code in src/project_name/data.py
35 36 37 | |
preprocess
preprocess(output_folder: Path) -> None
Preprocess the raw data and save it to the output folder.
Source code in src/project_name/data.py
43 44 | |