Practice Lab: assignments errors

how can i solve the problem

Hi,

It seems that x_train is an integer instead of a numpy array when passed into the function.
Or before x is used an integer has been assigned to it when it should remain a numpy array.
Please make sure only to add code in sections labeled:

### Start Code Here ###

### End Code Here ###
1 Like