136k views
1 vote
Suppose you run a bookstore, and have ratings (1 to 5 stars) of books. Your collaborative filtering algorithm has learned a parameter vector for user j, and a feature vector for each book. You would like to compute the "training error", meaning the average squared error of your system’s predictions on all the ratings that you have gotten from your users. Which of these are correct ways of doing so (check all that apply)For this problem, let m be the total number of ratings you

have gotten from your users. (Another way of saying this is
that m=∑nmi=1∑nuj=1r(i,j)). [Hint: Two of the four options below are correct.]
a) 1m∑(i,j):r(i,j)=1((θ(j))Tx(i)−r(i,j))2
b) 1m∑nmi=1∑j:r(i,j)=1(∑nk=1(θ(j))kx(i)k−y(i,j))2
c) 1m∑(i,j):r(i,j)=1((θ(j))Tx(i)−y(i,j))2
d) 1m∑nuj=1∑i:r(i,j)=1(∑nk=1(θ(k))jx(k)i−y(i,j))2

User Enrishi
by
4.6k points

1 Answer

4 votes
D because I’m forced to answer this question
User Shuwen
by
5.6k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.