Hi, I have a question in ML Specialization, Course 3, Week 2, and Lab assignment (C3_W2_RecSysNN_Assignment).
I wonder where this y is from and what it’s for. Can someone clarify this for me?
Hi, I have a question in ML Specialization, Course 3, Week 2, and Lab assignment (C3_W2_RecSysNN_Assignment).
I wonder where this y is from and what it’s for. Can someone clarify this for me?
Hi @jinhoishere
y_train
represents the movie ratings given by users. Each entry in y_train
corresponds to a rating that a user has given to a specific movie.
For example, in the provided screenshot, y_train[:5]
shows the first five ratings in the training set: [4. 3.5 4. 4. 4.5]
. These ratings are used as the target variable in your supervised learning model, where the goal is to predict the rating a user would give to a movie based on its features.
Hope it helps! Feel free to ask if you need further assistance.
Hello, @jinhoishere,
In section 3.1 (browser’s search function helped):
As for load_data
(search function can’t help this time), it is from:
You can click “File” > “Open” > “recsysNN_utils” to look for the load_data
function which should tell you how y_train
is loaded and from which data file.
Cheers,
Raymond
Now I see the reason why Andrew keeps mentioning the difference between supervised learning and each course in unsupervised learning (collaborative filtering, content-based filtering, and PCA). Each of them uses techniques of supervised learning.
Thank you !
I appreciate it !
I sometimes miss important details when I’m lost
You’re welcome! Happy to help
No problem
Cheers!
Raymond