Closed HeyAy closed 9 months ago
Well, i solve the above problem with reshaping the np.array on the y variable.
Ok great, I am closing this comment.
Ahhhhhhhh! Finally!
sorry, I came occur to this problem , but I dont know my XY is good or not:
X_scaled shape: (22748, 8) y shape: (22748,) coords shape: (22748, 2) X_scaled dtype: float64 y dtype: float64 coords dtype: float64
above are my output of my xy shape and datatype
I don't know if this is too late but the shape of your dependent variable (y) should be (n, 1) matrix. I would do a reshape on the y to make it a two-dimensional column matrix. Hope that helps
I use the function "Sel_BW ()", it can run successfully. But when i use the Sel_BW.search( ), python warns that "IndexError: invalid index to scalar variable."