Skip to content
Advertisement

Error with Pipeline for fourier featurizer

JavaScript

When I run above code. I get following error: TypeError: Last step of Pipeline should be of type BaseARIMA. 'FourierFeaturizer(k=1, m=14)'

I don’t wish to use BaseARIMA. Just wish to use FourierFeaturizer is it possible?

Advertisement

Answer

Yes, it’s possible.

Each FourierFeaturizer has a fit_transform method, which returns the y var and new exogenous variables. By concatenating this return value, you get Fourier features.

JavaScript

Warning: If you use m values which are multiples of each other, you will get co-linearity, because the 2nd frequency of m=14 is exactly the same as the 1st frequency of m=7. When using multiple seasonality, make sure their periods are not multiples of each other.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement