function optimize(θ) return max(dp[i]) model.fit(X, y) ∑(xᵢ - μ)² O(n log n)
[ 1 0 0 ]
[ 0 1 0 ]
[ 0 0 1 ]