李燕

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  matlab

摘要:不同的λ(0,1,10,100)值对regularization的影响\ 预测新的值和计算模型的精度%% ============= Part 2: Regularization and Accuracies =============% Optional Exercise:% In this ... 阅读全文
posted @ 2015-09-28 15:39 李燕 阅读(688) 评论(0) 推荐(0)

摘要:求得θ值后用模型来预测 / 计算模型的精度ex2.m部分程序%% ============== Part 4: Predict and Accuracies ==============% After learning the parameters, you'll like to use it t... 阅读全文
posted @ 2015-09-28 11:07 李燕 阅读(861) 评论(0) 推荐(0)

摘要:Regularized logistic regression : mapFeature(将feature增多) and costFunctionRegex2_reg.m文件中的部分内容%% =========== Part 1: Regularized Logistic Regression ==... 阅读全文
posted @ 2015-09-25 22:09 李燕 阅读(2790) 评论(0) 推荐(0)

摘要:Regularized logistic regression : plot data(画样本图)ex2data2.txt0.051267,0.69956,1-0.092742,0.68494,1-0.21371,0.69225,1-0.3... 阅读全文
posted @ 2015-09-25 21:33 李燕 阅读(818) 评论(0) 推荐(0)

摘要:画decision boundary(直线)%% ============= Part 3: Optimizing using fminunc =============% In this exercise, you will use a built-in function (fminunc) t... 阅读全文
posted @ 2015-09-23 21:04 李燕 阅读(1296) 评论(0) 推荐(0)

摘要:sigmoid.m文件function g = sigmoid(z)%SIGMOID Compute sigmoid functoon% J = SIGMOID(z) computes the sigmoid of z.g = zeros(size(z)); 初始化g ,z可以是一个数,一个向量... 阅读全文
posted @ 2015-09-21 16:56 李燕 阅读(796) 评论(0) 推荐(0)

摘要:画出data数据 data数据 34.62365962451697,78.0246928153624,030.28671076822607,43.89499752400101,035.84740876993872,72.90219802708364,060.18259938620976,86.308 阅读全文
posted @ 2015-09-18 21:37 李燕 阅读(3283) 评论(0) 推荐(1)

摘要:matlab的下标从1开始matlab结束运行快捷键 ctrl+c如何使一个向量里面的所有元素变成原来的平方 y=x.^2(.代表的是对元素进行操作)如何将向量里面的所有元素进行累加 sum(x)矩阵转置的表示 ’ 来表示矩阵转置...表示 ...表示连接到下一行,表... 阅读全文
posted @ 2015-05-30 21:55 李燕 阅读(381) 评论(0) 推荐(0)