temporal_fusion_transformer_pytorch icon indicating copy to clipboard operation
temporal_fusion_transformer_pytorch copied to clipboard

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

Open SLZWVICTOR opened this issue 4 years ago • 2 comments

Hello, I meet this problem when I run training_tft.ipynb 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''

SLZWVICTOR avatar Oct 10 '20 07:10 SLZWVICTOR

Hello, this code uses an older version of pytorch lightning and is going to have problems. I recommend you visit PyTorch Forecasting, it took the temporal fusion transformer from this repo and has an updated implementation for you to use. https://github.com/jdb78/pytorch-forecasting/tree/master

dehoyosb avatar Oct 13 '20 14:10 dehoyosb

this seem a problem with pd.read_csv and set index_col = 0 or numpy,just remove the index_col = 0 and manual remove with "drop"

BeHappyForMe avatar Nov 12 '20 03:11 BeHappyForMe