资源简介
andrew NG上的课程machine learning 的习题解答,这些习题对于机器学习入门还是非常有帮助的,值得学习。
代码片段和文件信息
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
............此处省略167个文件信息
相关资源
- svm_matlab 用SVM算法实现聚类与分类的例
- Peking_University_PSO_All_in_one 北京大学计
- weixingrangloudianchifadian 设计了燃料电池
- inpaintingMatlab
- fusion_change_detection SAR图像变化检测代
- zhifangtujunhanghua 直方图均衡
- yudong 运动目标识别
- spectralMattingCode 用于数字抠图的源代码
- image_matching
- matlabsanweichongjian matlab三维重建程序
- svd_nosie_removing
- regiongrow 利用区域标记进行区域分割
- BilateralFiltering
- Matlab-ECG-Processing 非常实用的基于Mat
- GJdongtaigzzz 改进了的动态视频目标跟踪
- Wavelet_denoising 小波变换的MATLAB源程序
-
thresholddenoisingba
sedonwavelet 小波阈值 - RBF-shenjingwangluoyuce RBF神经网络预测控
- RBF-shenjingwangluohundunyuce RBF神经网络混
- grabcut_matlab 三种基于GraphCut的图像分割
- PDE_in_image_processing (1)MATLAB程序:其
- matting 图像抠图是将图像的目标物体从
- ensemblelearning 该源代码主要是利用ba
- softmatting 本文提出了一个关于图像抠
- CVPR10-LLC \“Locality-constrained Linear Cod
- waveletdenoising 小波变换应用
- tezheng 本人找到的非常好的几何特征提
- zernike 矩不变量
-
SteppingMotor 步进电机的SIMli
nk模型 - yuanchuang1 车牌识别的一个完整程序
评论
共有 条评论