I have 2 variables from polynomial regression:
y_test = [1.57325397 0.72686416]
y_pred= [1.57325397 0.72686416]
y_test
is the y axis of the test i did, while y_pred
is are the values i got from regressor.predict
(regressor
is the object of LinearRegression
class).
I tried to use np.concatenate((y_test),(y_predict))
but it did not work and it said only integer scalar arrays can be converted to a scalar index. So what should I do here? it OK to round of the values to integers or should I do something else?