Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. T&Cs apply

A recommender using deep learning in Python

Run and modify the following deep learning recommender and share your experiences with others. from google.colab import driveimport osimport pandas as pdimport numpy as npimport pandas as pdimport numpy as …

A User-Based CF Recommender in Python

Run and modify the following code and share your experiences. import pandas as pdfrom sklearn.metrics.pairwise import cosine_similaritypd.set_option('display.width', None)# 0 Load the movies and ratings datasets into two data frames.movies = …

A Content-based Recommender using TF-IDF in Python

Run and modify the following code and share your experiences with others. import pandas as pdimport numpy as npimport matplotlib.pyplot as pltfrom itertools import combinationsimport seaborn as snsfrom sklearn.feature_extraction.text import …

A similarity-based-recommender in Python

Run and modify the following code and share your experiences. import numpy as npimport pandas as pd# Load the movie basic information dataset in a Pandas dataframe.# https://datasets.imdbws.com/title.basics.tsv.gzmovies = pd.read_csv('data.tsv', …

Python Turtle

Run and modify the following “while-turtle.py” and share your experiences with others. import turtleimport timewindow = turtle.Screen()length = 200turtle.color("red","yellow")turtle.pensize(2)turtle.begin_fill()while True: turtle.forward(300) turtle.right(170) if abs(turtle.pos()) < 1: breakturtle.end_fill()time.sleep(5)

A k-means example in Python

Run and modify the following code and share your experiences. You can try different k and see their difference. from sklearn.cluster import KMeansimport numpy as npimport matplotlib.pyplot as plt# Sample …

A recommender using matrix factorization in Python

Run and modify the following “svd-recommender.py” and share your experiences with others. from surprise import Datasetfrom surprise import Readerfrom surprise.model_selection import train_test_splitfrom surprise import SVDfrom surprise import accuracy# Load your …

Extended resources for the cold start problem

The cold start problem is common in recommender systems. The following article at https://analyticsindiamag.com/cold-start-problem-in-recommender-systems-and-its-mitigation-techniques/ is for your reference, which you can explore further for additional insights of this problem and …