jweinst1
7/17/2015 - 2:16 AM

gistfile1.py

    not_reviewed_by_user = {restaurant_name(food_place):predictor(food_place) for food_place in restaurants if food_place not in reviewed}
    for r in reviewed: #this for loop adds the restaurants reviewed by the user with the rating
        not_reviewed_by_user.update({restaurant_name(r):user_rating(user, restaurant_name(r))})
    return not_reviewed_by_user