You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interesting, I can't even fit with an array with that datatype. One thing to note is that you can just pass a Pandas series as your y. I convert everything to a Series so I can add some code to convert data types to floats for the fitting procedure, that should address this. For now just make sure everything you pass is some sort of numerical type.
If I make my data like this
y = np.array(df.cust)
, I have an array with dtype=object.array([2280, 2158, 2067, ..., 1696, 2035, 2083], dtype=object)
With this array I am able to fit the model but predicting throws me an error
If I make my data like this
y = np.array(df.cust, dtype=int)
, then dtype is not 'object' and both fitting and predicting workThe text was updated successfully, but these errors were encountered: