Dataset Viewer
View in Dataset Viewer
Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code: ConfigNamesError Exception: DataFilesNotFoundError Message: No (supported) data files found in acharkq/PubChem324kV2 Traceback: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 65, in compute_config_names_response get_dataset_config_names( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 347, in get_dataset_config_names dataset_module = dataset_module_factory( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1840, in dataset_module_factory raise e1 from None File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1821, in dataset_module_factory return HubDatasetModuleFactoryWithoutScript( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1215, in get_module module_name, default_builder_kwargs = infer_module_for_data_files( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 591, in infer_module_for_data_files raise DataFilesNotFoundError("No (supported) data files found" + (f" in {path}" if path else "")) datasets.exceptions.DataFilesNotFoundError: No (supported) data files found in acharkq/PubChem324kV2
Need help to make the dataset viewer work? Open a discussion for direct support.
YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/datasets-cards)
README
Description
The second version of the PubChem324k Dataset used in the paper: MolCA: Molecular Graph-Language Modeling with Cross-Modal Projector and Uni-Modal Adapter
Load Example
import torch
from torch_geometric.data import InMemoryDataset
class PubChemDataset(InMemoryDataset):
def __init__(self, path):
super(PubChemDataset, self).__init__()
self.data, self.slices = torch.load(path)
def __getitem__(self, idx):
return self.get(idx)
if __name__ == '__main__':
dataset = PubChemDataset('./pretrain.pt')
print(dataset[0])
- Downloads last month
- 2