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

ImportError: cannot import name 'f1_score' from 'torch_geometric.utils' #41

Open
mrwrongwrongwrong opened this issue Apr 20, 2023 · 1 comment

Comments

@mrwrongwrongwrong
Copy link

Is there an update with modified name of f1_score from the torch_geometric?

@SaeidKalantari
Copy link

You can just modify the main.py code like this:
line 8: from torch_geometric.utils import add_self_loops
line 10: from utils import init_seed, _norm, f1_score
Remove f1_score from line 8 and import it from utils file in line 10.

OmerBenHayun added a commit to OmerBenHayun/Graph_Transformer_Networks that referenced this issue Jul 1, 2023
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