摘要: Feature Scalling Idea: Make sure features are on a similar scale 特征缩放 想法:确保所有的特征在相似的范围 为什么进行特征缩放? 例如:x1 = size (0-2000 feet2) x2 = number of bedrooms 阅读全文
posted @ 2018-10-22 21:45 qkloveslife 阅读(829) 评论(0) 推荐(0) 编辑
摘要: Hypothesis: \[{h_\theta }\left( x \right) = {\theta ^T}x = {\theta _0} + {\theta _1}{x_1} + {\theta _2}{x_2} + ... + {\theta _n}{x_n}\] 参数(Parameters) 阅读全文
posted @ 2018-10-22 21:13 qkloveslife 阅读(833) 评论(0) 推荐(0) 编辑
摘要: Multiple features (variables) Size x1 Number of bedrooms x2 Number of floors x3 Age of home(year) x4 Price y Notation: n = number of features x(i) = i 阅读全文
posted @ 2018-10-22 20:17 qkloveslife 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 梯度下降算法 重复直到收敛{ \[{\theta _j}: = {\theta _j} - \alpha \frac{\partial }{{\partial {\theta _j}}}J\left( {{\theta _0},{\theta _1}} \right)\left( {for{\rm{ 阅读全文
posted @ 2018-10-22 19:30 qkloveslife 阅读(983) 评论(0) 推荐(0) 编辑
摘要: Have some function J(θ0, θ1), generally J(θ0, θ1,θ2, θ3,..., θn) Want: \[\mathop {\min }\limits_{{\theta _0},{\theta _1}} J\left( {{\theta _0},{\theta 阅读全文
posted @ 2018-10-22 12:43 qkloveslife 阅读(500) 评论(0) 推荐(0) 编辑