资源简介
个人整理 斯坦福公开课 机器学习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个文件信息
相关资源
- 人脸识别 MATLAB代码
- 卷积神经网络matlab代码下载153575
- 机器学习基础,配套代码
- 机器学习:近20种人工神经网络模型m
- BP神经网络的人脸识别matlab代码
- pegasos算法matlab代码
- 机器学及其matlab实现—从基础到实践
- 模式分类Pattern Classification第二版Dud
- mnist的mat格式数据
- 《MATLAB神经网络43个案例分析》源代码
- RCNNfast-RCNN和faster-RCNN最全文献和matl
- 基于PCA与SVM的人脸识别matlab代码
- 机器学习基础教程 matlab代码+数据
- SDM的matlab代码
- 深度学习的matlab代码
- 凸优化matlab代码
- Grace水储量解算Matlab代码-20200321.zip
- 2020研究生数学建模——大雾能见度估
- 本征正交分解PODMatlab代码
- MATLAB神经网络原理与精解pdf+源码
- SMQT算法MATLAB代码
- 相干信号源DOA估计算法MATLAB代码
- 高斯过程回归matlab代码
- 《自适应滤波器原理及Matlab仿真应用
- 混沌计算程序包+matlab代码
- 电力系统潮流计算matlab代码
- 语音增强speech enhancement中英文版+书后
- PCA人脸识别matlab代码
- 图像质量评价matlab代码与参考文献大
- ICA独立成分分析的matlab代码
评论
共有 条评论