资源简介

个人整理 斯坦福公开课 机器学习CS229课程 较全讲义、作业和matlab代码。

资源截图

代码片段和文件信息

function J = computeCost(X y theta)
%COMPUTECOST Compute cost for linear regression
%   J = COMPUTECOST(X y theta) computes the cost of using theta as the
%   parameter for linear regression to fit the data points in X and y

% Initialize some useful values
m = length(y); % number of training examples

% You need to return the following variables correctly 
J = 0;

% ====================== YOUR CODE HERE ======================
% Instructions: Compute the cost of a particular choice of theta
%               You should set J to the cost.
Z = (X * theta - y).^2;
J = sum(Z(:1)) / (2 * m);
% =========================================================================

end

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        636  2013-05-28 07:51  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\computeCost.asv

     文件        678  2013-05-28 09:25  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\computeCost.m

     文件        713  2013-05-28 10:17  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\computeCostMulti.m

     文件       3490  2013-05-28 07:31  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ex1.asv

     文件       3438  2013-05-28 07:36  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ex1.m

     文件       1359  2012-08-20 22:58  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ex1data1.txt

     文件        657  2012-08-20 22:58  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ex1data2.txt

     文件       4601  2013-05-29 22:22  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ex1_multi.asv

     文件       4610  2013-05-29 22:23  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ex1_multi.m

     文件       1631  2013-05-28 10:06  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\featureNormalize.asv

     文件       1453  2013-05-28 10:07  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\featureNormalize.m

     文件        928  2013-05-28 09:16  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\gradientDescent.asv

     文件       1130  2013-05-28 10:46  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\gradientDescent.m

     文件        994  2013-05-28 10:46  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\gradientDescentMulti.m

     文件        255  2013-05-28 10:53  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\ml_login_data.mat

     文件        674  2013-05-29 22:20  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\normalEqn.m

     文件         48  2013-05-28 10:56  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\octave-core

     文件       1042  2013-05-28 07:35  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\plotData.m

     文件      17317  2013-04-25 15:38  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\submit.m

     文件        827  2012-08-20 22:58  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\submitWeb.m

     文件        520  2013-05-28 07:05  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1\warmUpExercise.m

     文件     493361  2012-08-20 22:58  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex1_003(Week2)_finished\ex1.pdf

     文件     188600  2013-05-13 14:28  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\ex2.pdf

     文件       1040  2013-05-30 09:28  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\costFunction.m

     文件       1059  2013-05-30 10:03  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\costFunctionReg.asv

     文件       1187  2013-05-30 10:16  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\costFunctionReg.m

     文件       3722  2013-05-13 14:28  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\ex2.m

     文件       3775  2013-05-13 14:28  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\ex2data1.txt

     文件       2233  2013-05-13 14:28  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\ex2data2.txt

     文件       2973  2013-05-30 10:18  Machine Learning exercises_finished by Andrew Ng Stanford(合集)\ex2-003(Week3)_finished\mlclass-ex2\ex2_reg.m

............此处省略200个文件信息

评论

共有 条评论