Hands-On Recommendation Systems with Python by Rounak Banik
Author:Rounak Banik
Language: eng
Format: epub
Tags: COM004000 - COMPUTERS / Intelligence (AI) and Semantics, COM042000 - COMPUTERS / Natural Language Processing, COM018000 - COMPUTERS / Data Processing
Publisher: Packt Publishing
Published: 2018-07-31T08:18:12+00:00
#Compute the cosine similarity score (equivalent to dot product for tf-idf vectors)
cosine_sim2 = cosine_similarity(count_matrix, count_matrix)
Since we dropped a few movies with bad indices, we need to construct our reverse mapping again. Let's do that as the next step:
# Reset index of your df and construct reverse mapping again
df = df.reset_index()
indices2 = pd.Series(df.index, index=df['title'])
With the new reverse mapping constructed and the similarity scores computed, we can reuse the content_recommender function defined in the previous section by passing in cosine_sim2 as an argument. Let's now try out our new model by asking recommendations for the same movie, The Lion King:
content_recommender('The Lion King', cosine_sim2, df, indices2)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8305)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6781)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6755)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6642)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6428)
Driving Data Quality with Data Contracts by Andrew Jones(6369)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6129)
Learning SQL by Alan Beaulieu(6002)
Weapons of Math Destruction by Cathy O'Neil(5793)
Big Data Analysis with Python by Ivan Marin(5383)
Data Engineering with dbt by Roberto Zagni(4386)
Solidity Programming Essentials by Ritesh Modi(4036)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3894)
Pandas Cookbook by Theodore Petrou(3597)
Blockchain Basics by Daniel Drescher(3303)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2912)
Feature Store for Machine Learning by Jayanth Kumar M J(2817)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2800)
Mastering Python for Finance by Unknown(2747)
