July 2018
Beginner to intermediate
146 pages
3h 39m
English
We are finally in a position to write the function that will act as our recommender. We cannot use our computed values of m and C from earlier, as we will not be considering every movie just the ones that qualify. In other words, these are three main steps:
Therefore, the build_chart function will accept only two inputs: our gen_df DataFrame and the percentile used to calculate the value of m. By default, let's set this to 80%, or 0.8:
def build_chart(gen_df, percentile=0.8): #Ask for preferred genres print("Input ...Read now
Unlock full access