Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading own dataset?? #223

Open
amarye opened this issue Sep 14, 2023 · 1 comment
Open

Reading own dataset?? #223

amarye opened this issue Sep 14, 2023 · 1 comment

Comments

@amarye
Copy link

amarye commented Sep 14, 2023

I am a new user of AI, and I have followed a molecule generation tutorial in Colab. However, I encountered an error when I tried to use my dataset. Unfortunately, I don't know how to solve this error. Could you please assist me?

Screenshot from 2023-09-14 15-37-04

Screenshot from 2023-09-14 15-36-24

@Arkhymadhe
Copy link

The dataset you need is not tthe pandas dataset, but an instance of the Dataset object in torchdrug. Try doing something like:

import pandas as pd
from torchdrug.dataset import MoleculeDataset

molecule_dataset = MoleculeDataset.from_smiles(csv_file = "out.csv")

This should do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants