Skip to content

Instantly share code, notes, and snippets.

View JnBrymn-EB's full-sized avatar
👖
.

John Berryman JnBrymn-EB

👖
.
View GitHub Profile
@JnBrymn-EB
JnBrymn-EB / example.py
Last active August 29, 2015 14:23
example recommendation workflow
event_clicks = get_clicks() # reusable!
# [(user_id, guest_id, event_id),...]
event_clicks = collapse_to_person_event(event_clicks) # reusable! testable!
# [(person_id, event_id),...]
person_to_their_events = event_clicks.reduceByKey(event_clicks)
# [(person_id, [event_id,...])...]
event_sets = person_to_their_events.values()
@JnBrymn-EB
JnBrymn-EB / DistroBounder.ipynb
Created June 11, 2015 01:44
distribution bounding demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.