You are on page 1of 1

Instructions for updating:

Use tf.where in 2.0, which has the same broadcast rule as np.where
[108.468285, 108.783585, 109.527756, 110.28882, 110.94019, 111.44764, 111.82477,
112.09771, 112.292564, 112.430595, 112.52827, 112.59733, 112.646324, 112.68124,
112.706245, 112.724205, 112.73719, 112.746666, 112.75361, 112.75868]
Traceback (most recent call last):
File "C:/Users/Renad/PycharmProjects/Project_Sample/Project1.py", line 136, in
<module>
mse=mean_squared_error(x_test,prediction)
File "C:\Users\Renad\PycharmProjects\Project_Sample\venv\lib\site-
packages\sklearn\metrics\regression.py", line 241, in mean_squared_error
y_true, y_pred, multioutput)
File "C:\Users\Renad\PycharmProjects\Project_Sample\venv\lib\site-
packages\sklearn\metrics\regression.py", line 77, in _check_reg_targets
check_consistent_length(y_true, y_pred)
File "C:\Users\Renad\PycharmProjects\Project_Sample\venv\lib\site-
packages\sklearn\utils\validation.py", line 205, in check_consistent_length
" samples: %r" % [int(l) for l in lengths])
ValueError: Found input variables with inconsistent numbers of samples: [1948, 1]

Process finished with exit code 1

You might also like