Collaborative Filtering Cost
This commit is contained in:
parent
87457bb7b4
commit
fc28204594
1 changed files with 6 additions and 18 deletions
|
@ -40,19 +40,7 @@ Theta_grad = zeros(size(Theta));
|
|||
% partial derivatives w.r.t. to each element of Theta
|
||||
%
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
J = 0.5 * sum(sum(R.*(X*Theta'-Y).^2));
|
||||
|
||||
|
||||
% =============================================================
|
||||
|
|
Reference in a new issue