Developing A Course Recommender System Using Python
Developing A Course Recommender System Using Python
Home Beginner
Developing A Course Recommender System using Python
Siddharth Sachdeva
25 Aug, 2021 • 6 min read
We use cookies on Analytics Vidhya websites to deliver our services, analyze web traffic, and improve your experience on the site. By using
Analytics Vidhya, you agree to our Privacy Policy and Terms of Use. Accept
Step 3: Creating
Developing A Course Recommender Systema similarity matrix between the
using Python
students.
# import TfidfVector from sklearn.
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import linear_kernel
def create_similarity_matrix(new_description, overall_descri
#Append the new description to the overall set.
overall_descriptions.append(new_description)
# Define a tfidf vectorizer and remove all stopwords
tfidf = TfidfVectorizer(stop_words="english")
#Convert tfidf matrix by fitting and transforming th
tfidf_matrix = tfidf.fit_transform(overall_descripti
# output the shape of the matrix.
tfidf_matrix.shape
# calculating the cosine similarity matrix.
cosine_sim = linear_kernel(tfidf_matrix,tfidf_matrix
return cosine_sim
We use cookies on Analytics Vidhya websites to deliver our services, analyze web traffic, and improve your experience on the site. By using
Analytics Vidhya, you agree to our Privacy Policy and Terms of Use. Accept
Developing A Course Recommender System using Python
1 Sachdeva
Siddharth
25 Aug 2021
Computer science enthusiast
Submit reply
vishwanath
21 Jul, 2023
Hi all, Can anyone share the raw data file link ?
Company Discover
About Us Blogs
Contact Us Expert session
Careers Podcasts
Comprehensive Guides
Learn Engage
Free courses Community
Learning path Hackathons
BlackBelt program Events
Gen AI Daily challenges
Contribute Enterprise
Contribute & win Our offerings
Become a speaker Case studies
Become a mentor Industry report
Become an instructor quexto.ai
Download App