1 Star 0 Fork 1

JeffreyChan / coursera_machine_learning

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
costFunctionJ.m 138 Bytes
Copy Edit Web IDE Raw Blame History
Yonggan Wu authored 2017-01-05 13:05 . Added the previous documents
function J = CostFunctionJ(X, y, theta)
m = size(X,1);
predictions = X*theta;
sqrErrors = (redictions-y).^2;
J = 1/(2*m)*sum(sqrErrors);

Comment ( 0 )

Sign in for post a comment

Matlab
1
https://gitee.com/jeffreychan/coursera_machine_learning.git
git@gitee.com:jeffreychan/coursera_machine_learning.git
jeffreychan
coursera_machine_learning
coursera_machine_learning
master

Search