I started doing the course machine learning course at Coursera, but when I run the optional task (ex1_multi) of the programming task of week2, warning occurs as follows.
What is the cause?Thank you for your cooperation.
Loading data...
First 10 examples from the dataset:
x = [21043], y = 399900
x = [16003], y = 329900
x = [24003], y = 369000
x = [14162], y = 232000
x = [30004], y = 539900
x = [19854], y = 299900
x = [15343], y = 314900
x = [14273], y = 198999
x = [13803], y = 212000
x = [14943], y = 242500
Program pause.Press enter to continue.
Normalizing Features...
Running gradient descent...
Theta computed from gradient descent:
NaN
NaN
NaN
Predicted price of a 1650 sq-ft, 3br house (using gradient descent):
$0.000000
Program pause.Press enter to continue.
warning:opengl_render:data values greater than float capacity.(1) Scaleda
ta, or (2) Use gnuplot
warning —Called from
ex1_multi at line 117 column1
Solving with normal equations...
Theta computed from the normal equations:
89597.909541
139.210674
-8738.019112
Predicted price of a 1650 sq-ft, 3br house (using normal equations):
$0.000000
warning:opengl_render:data values greater than float capacity.(1)Scale data, or (2)Usegnuplot
machine-learning octave
Theta calculation results are
Theta computed from gradient descent:
NaN
NaN
NaN
However, NaN is an abnormal value that appears when 0 is divided by 0, so the calculation has failed.Probably because the plot data also contains abnormal values, warning is occurring.
Please review the cost function and gradient descent codes.
367 To Limit Column Values to Strings in a String List Using sqlalchemy
356 Unity Virtual Stick Does Not Return to Center When You Release Your Finger
342 Memory layouts learned in theory don't work out as expected when actually printed as addresses.
© 2023 OneMinuteCode. All rights reserved.