pytorch-forecasting icon indicating copy to clipboard operation
pytorch-forecasting copied to clipboard

UserWarning with target EncoderNormalizer

Open terbed opened this issue 1 year ago • 2 comments

  • PyTorch-Forecasting version: 1.0.0
  • PyTorch version: 2.0.0
  • Python version: Python 3.10.8
  • Operating System: Ubuntu

I am using a target EncoderNormalizer which produces the following warning:

sklearn/base.py:409: UserWarning:
X does not have valid feature names, but StandardScaler was fitted with feature names

Why could this happen? Should I be concerned about this?

terbed avatar May 15 '23 10:05 terbed

@terbed hi, did you find a solution?

flight505 avatar Feb 20 '24 23:02 flight505

got the same problem when using a TimeSeriesDataSet with the EncoderNormalizer. runs in theory, but 16 error messages per datapoint slow down jupyter quite a bit.

found a fix in setting add_target_scales=False for the dataset. possible fix, running the encoder after adding target scales to X?

Acetylsalicylsaeure avatar Feb 26 '24 14:02 Acetylsalicylsaeure