Skip to content

Instantly share code, notes, and snippets.

@jspacker
Last active December 15, 2015 16:09
Show Gist options
  • Save jspacker/5286682 to your computer and use it in GitHub Desktop.
Save jspacker/5286682 to your computer and use it in GitHub Desktop.
diff between patents-pagerank and twitter-pagerank controlscripts
$ diff controlscripts/patents-pagerank.py controlscripts/twitter-pagerank.py
4c4
< EDGES_INPUT = "s3n://mortar-example-data/patents-pagerank/patent_organization_citation_graph"
---
> EDGES_INPUT = "s3n://mortar-example-data/twitter-pagerank/influential_user_graph.gz"
7,8c7,8
< DAMPING_FACTOR = 0.7
< CONVERGENCE_THRESHOLD = 0.0001
---
> DAMPING_FACTOR = 0.85
> CONVERGENCE_THRESHOLD = 0.0015 # we set the convergence parameter higher than usual, for sake of speeding up the example
12c12
< TEMPORARY_OUTPUT_PREFIX = "hdfs:///patents-pagerank"
---
> TEMPORARY_OUTPUT_PREFIX = "hdfs:///twitter-pagerank"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment