摘要: 使hypotheses hθ(x) to satisfy 0≤hθ(x)≤1. z > 0,g(z) > 0.5 ,y=1; z< 0,g(z) < 0.5 ,y=0; Cost Function: When y = 1, we get the following plot for J(θ) vs  阅读全文
posted @ 2017-04-21 22:24 bloglxc 阅读(166) 评论(0) 推荐(0)
摘要: 1 == 2 % false 1 ~=2 % true % 隐藏版本,只显示>> . PS1('>> '); % 输出两位小数格式 disp(sprintf('2 decimals: %0.2f',a)) % 转换数字格式 format long format short v = 1:0.1:2 % 阅读全文
posted @ 2017-04-21 18:56 bloglxc 阅读(400) 评论(0) 推荐(0)