Sorry, your submission was incorrect. Please try again. type numpy.ndarray doesn't define __round__ method

what does error suppose to mean? I have submitted the assignment nearly about 10 times if I returned a float value the grader says

Your result did not return as np.ndarray

Hi @husseinmleng,
I cannot tell for sure without seeing your code, but it seems like your code doesn’t give back an array, as it should be.

Exercise_1_House_Prices_Question.ipynb (1.1 MB)
Here is my code

The model is expecting a float as input but you passed a list.

when I passed a float value this error arises

AttributeError: 'float' object has no attribute 'shape'

Exercise_1_House_Prices_Question.ipynb (65.0 KB)

Check what the
model.predict(y_new)
you wrote at the end of your function returns (that seems to be the problem) and then modify it.