• 大小: 43.37MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-30
  • 语言: 其他
  • 标签: ML  

资源简介

吴恩达机器学习大作业完成版! 吴恩达机器学习大作业完成版!

资源截图

代码片段和文件信息

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.
J = sum((X*theta-y).*(X*theta-y))/(2*m);




% =========================================================================

end

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

     文件    1554620  2018-09-02 11:44  machine-learning-ex\Lecture10.pdf

     文件     509584  2018-09-02 11:45  machine-learning-ex\Lecture11.pdf

     文件    2415325  2018-09-02 11:46  machine-learning-ex\Lecture12.pdf

     文件    2280366  2018-09-02 11:46  machine-learning-ex\Lecture13.pdf

     文件    1685108  2018-09-02 11:47  machine-learning-ex\Lecture14.pdf

     文件    3488418  2018-09-02 11:47  machine-learning-ex\Lecture15.pdf

     文件    1485594  2018-09-02 11:49  machine-learning-ex\Lecture16.pdf

     文件    2075061  2018-09-02 11:49  machine-learning-ex\Lecture17.pdf

     文件    2067134  2018-09-02 11:49  machine-learning-ex\Lecture18.pdf

     文件        672  2018-08-05 17:30  machine-learning-ex\machine-learning-ex1\ex1\computeCost.m

     文件        712  2018-08-06 10:07  machine-learning-ex\machine-learning-ex1\ex1\computeCostMulti.m

     文件       4099  2018-08-05 15:04  machine-learning-ex\machine-learning-ex1\ex1\ex1.m

     文件       1359  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\ex1data1.txt

     文件        657  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\ex1data2.txt

     文件       4534  2018-08-06 12:04  machine-learning-ex\machine-learning-ex1\ex1\ex1_multi.m

     文件       1382  2018-08-05 22:35  machine-learning-ex\machine-learning-ex1\ex1\featureNormalize.m

     文件       1157  2018-08-05 18:44  machine-learning-ex\machine-learning-ex1\ex1\gradientDescent.m

     文件        986  2018-08-06 10:11  machine-learning-ex\machine-learning-ex1\ex1\gradientDescentMulti.m

     文件       1624  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\AUTHORS.txt

     文件       3862  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\ChangeLog.txt

     文件        881  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\jsonopt.m

     文件       1551  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\LICENSE_BSD.txt

     文件      18732  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\loadjson.m

     文件      15574  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\loadubjson.m

     文件        771  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\mergestruct.m

     文件      19369  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\README.txt

     文件      17462  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\savejson.m

     文件      16123  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\saveubjson.m

     文件       1094  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\jsonlab\varargin2struct.m

     文件       1195  2017-03-14 09:40  machine-learning-ex\machine-learning-ex1\ex1\lib\makeValidFieldName.m

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

评论

共有 条评论