We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should give a full standalone code example in the README, including evaluation.
Spinoff from #12. The example I gave there is this (slightly reworked to take advantage of a7121f8):
import linkpred import random from matplotlib import pyplot as plt random.seed(100) # Read network G = linkpred.read_network('examples/inf1990-2004.net') # Create test network test = G.subgraph(random.sample(G.nodes(), 300)) # Exclude test network from learning phase training = G.copy() training.remove_edges_from(test.edges()) simrank = linkpred.predictors.SimRank(training, excluded=training.edges()) simrank_results = simrank.predict(c=0.5) evaluation = linkpred.evaluation.EvaluationSheet(simrank_results, test.edges()) plt.plot(evaluation.recall(), evaluation.precision())
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We should give a full standalone code example in the README, including evaluation.
Spinoff from #12. The example I gave there is this (slightly reworked to take advantage of a7121f8):
The text was updated successfully, but these errors were encountered: