prophet
prophet copied to clipboard
Problem With Extra Regressor
Hello, I am having a big issue when adding regressor and then use the predict function : TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
I've tried everything (including upgrading Pandas or Numpy) but it doesn't seem to work..
same issue
the solution for me was to change the regressor value from bool to int (i.e. df['regressor_col'].astype(int))
@pflajszer adding regressor which is of int type, still receiving the error to be TypeError: ufunc 'isnan' not supported for the input types.
Guys, I don't know if you are having problem with this yet, but I instantied the model with argument "uncertainty_samples = 0" and I not having the issue. Of course that we are losing some property of the model, but, if only the predictions are important, maybe you should give it a try.