Skip to content

Instantly share code, notes, and snippets.

View HarizNaam's full-sized avatar

Hariz Naam HarizNaam

View GitHub Profile
library(rmongodb)
#connect to mongoDB
mongo = mongo.create(host = "localhost")
mongo.is.connected(mongo)
# User Similarity
bson <- mongo.find.one(mongo, "DeliciousMR.map_reduce_BM25UserSimilarity", query ='{"_id": "8;1;"}')
bson
# Item Similarity