prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Problem With Extra Regressor

Open eliegan opened this issue 2 years ago • 4 comments

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..

Screen Shot 2023-08-13 at 13 59 49

eliegan avatar Aug 13 '23 11:08 eliegan

same issue

Spandyie avatar Oct 05 '23 22:10 Spandyie

the solution for me was to change the regressor value from bool to int (i.e. df['regressor_col'].astype(int))

pflajszer avatar Dec 11 '23 14:12 pflajszer

@pflajszer adding regressor which is of int type, still receiving the error to be TypeError: ufunc 'isnan' not supported for the input types. image

babhinav21 avatar Jan 03 '24 18:01 babhinav21

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.

Miguilo avatar Aug 01 '24 15:08 Miguilo