Created
June 5, 2013 20:17
-
-
Save rjurney/5716952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
per_repo_recs = FOREACH (group pearson by repo1) { | |
sorted = ORDER pearson BY similarity DESC; | |
top_20 = LIMIT sorted 20; | |
GENERATE group AS repo, top_20.(repo2, similarity) AS recs; | |
}; | |
store per_repo_recs INTO '/tmp/recommendations.txt'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment