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

How to use linkpred for evaluation #17

Closed
Kiteflyingee opened this issue Jul 19, 2018 · 3 comments
Closed

How to use linkpred for evaluation #17

Kiteflyingee opened this issue Jul 19, 2018 · 3 comments

Comments

@Kiteflyingee
Copy link

HI,I am a newcomer in the field of link prediction. I want to know how to use the tool ’linkpred‘ to evaluate related indicators. I found that there are a lot of evaluation functions built in, I call these functions but I don't get a value, but a series values,.Such as precision, will return a list of precisions. I don't know what this means? I found out in the question that you can use the sklearn package for evaluation. I don't know how to do it. Finally, is this tool related to the documentation or manual?

@rafguns
Copy link
Owner

rafguns commented Aug 21, 2018

You get a series of precision (or recall or ...) values, because link prediction yields a score for node pairs. In other words, the first value is the precision taking just the single highest ranked node pair into account, the second value is the precision taking the two highest ranked node pairs into account, etc.

If you want one value, you will have to decide on a cut-off point yourself. This is what PrecisionAtKListener does. Here, k is the cut-off point, i.e. the number of node pairs you want to take into account.

@rafguns
Copy link
Owner

rafguns commented Aug 21, 2018

You cannot really use sklearn at the moment; issue #3 is about enabling this and simplifying the API.

@rafguns
Copy link
Owner

rafguns commented Aug 21, 2018

Not sure if I understand your last question correctly, but this chapter is a basic introduction to link prediction using linkpred.

@rafguns rafguns closed this as completed Aug 21, 2018
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