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

I plot ROC curve successfully, but the range of the X axis isn't 0 to 1 #27

Open
Do-no-evil opened this issue Oct 26, 2019 · 1 comment

Comments

@Do-no-evil
Copy link

No description provided.

@Do-no-evil Do-no-evil changed the title I plot ROC curve successfully, but the range of the X axis is only 0 to 0.08 I plot ROC curve successfully, but the range of the X axis isn't 0 to 1 Oct 27, 2019
@rafguns
Copy link
Owner

rafguns commented Nov 4, 2019

Thanks for the report. I am aware of this but since there isn't a separate issue about it, I will keep this one open.

The reason is that linkpred only calculates ROC curves (or other evaluation curves) for those node pairs for which there actually is a prediction. For many predictors that is just a fraction of all possibilities, leading to plots like the one you obtained.

It might be possible to extend the current code to treat all node pairs for which there is no prediction as effectively zeroes. However, going forward, the better way to handle this in the package would be to replace the implementation of ROC et al. here with the one in scikit-learn, which is more general and robust.

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