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

predicting error #9

Open
sunjiwon opened this issue Feb 13, 2022 · 2 comments
Open

predicting error #9

sunjiwon opened this issue Feb 13, 2022 · 2 comments

Comments

@sunjiwon
Copy link

sunjiwon commented Feb 13, 2022

Hello,
I have a question about your framework matdeeplearn.
An error occurs when I predict the new material I synthesized!
Their target.csv file and csv file are in a folder...
I don't know why the error occurs..

Dataset used: StructureDataset(1017)
Traceback (most recent call last):
File "main.py", line 552, in
main()
File "main.py", line 238, in main
print(dataset[0])
File "/home/------/anaconda3/lib/python3.7/site-packages/torch_geometric/data/dataset.py", line 199, in getitem
data = data if self.transform is None else self.transform(data)
File "/home/------/MatDeepLearn/matdeeplearn/process/process.py", line 702, in call
data.y = data.y[0][self.index]
IndexError: index 0 is out of bounds for dimension 0 with size 0

@vxfung
Copy link
Collaborator

vxfung commented Feb 16, 2022

Hi sunjiwon, what does the csv file look like? Perhaps the setting for "target_index" in the config.yml is also incorrect?

@sunjiwon
Copy link
Author

sunjiwon commented Mar 6, 2022

thanks for your answer and making this good method, I resolve this problem. your model has a very good prediction abilty:)

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