Jul 21, 2024
h(x) = θ₀ + θ₁x₁ + θ₂x₂ + ...
h(x) = Σ(θ_j * x_j) for j = 0 to n
J(θ) = 1/2M Σ(h_θ(x^(i)) - y^(i))²
θ_j := θ_j - α * ∂/∂θ_j J(θ)
θ = (X^TX)⁻¹X^Ty
Full transcript