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

2022-09-30 14:03

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.

2022-09-30 14:03

Popular Tags

python x 4628
android x 1593
java x 1493
javascript x 1425
c x 924
c++ x 877
ruby-on-rails x 696
php x 692
python3 x 683
html x 656

Popular Questions

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.