08 2017 档案
摘要:Matrix 定义及基本运算 Transposing To "transpose" a matrix, swap the rows and columns. We put a "T" in the top right-hand corner to mean transpose: Inverse of
阅读全文
摘要:Classification 使用线性回归来分类,会很不准确。并且,它的范围也会超出 {0, 1}。所以使用下面的逻辑回归模型。 Hypothesis representation 线性回归中 hθ(x) = θTx,而在逻辑回归中,我们想要 hθ(x) ∈ [0, 1]。对结果进行双曲化处理: ,
阅读全文
摘要:3. % 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 传入的参数的 s
阅读全文
摘要:Multiple Features 上一章中,hθ(x) = θ0 + θ1x,表示只有一个 feature。现在,有多个 features,所以 hθ(x) = θ0 + θ1x1 + θ2x2 + ... + θjxj。为了标记的方便,增加 x0 = 1 用向量表示 这里的 X 表示单行 Xi。
阅读全文

浙公网安备 33010602011771号