snap-stanford / ogb

Benchmark datasets, data loaders, and evaluators for graph machine learning
https://ogb.stanford.edu
MIT License
1.89k stars 397 forks source link

Probably wrong argument in the type checking condition #232

Closed ekosman closed 3 years ago

ekosman commented 3 years ago

https://github.com/snap-stanford/ogb/blob/3accaa77c98af743ce8210d55256946702b8da42/ogb/graphproppred/evaluate.py#L51

You check the same argument (y_true) twice. Is it intended to be this way?

weihua916 commented 3 years ago

Good catch. Fixed!