← Back to Course
Cost Function Explorer
Explore how the cost function J changes as you adjust the parameters of a linear model.
Data & Model: y = θ
0
+ θ
1
x
Cost: J(θ
1
) with θ
0
fixed
Parameters
Vary θ
1
Vary θ
0
θ
0
(intercept):
0.00
θ
1
(slope):
0.00
Values
θ
0
0.00
θ
1
0.00
Cost J(θ)
0.00
Min Cost
--
How to Use
Drag the sliders to change θ
0
and θ
1
Watch the line update in the top plot
The bottom plot shows cost as a function of the varying parameter
Toggle which parameter to vary
The red dot shows your current position on the cost curve