Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Models: Automatic BoxCox estimation inside AutoARIMA] #485

Open
JSzitas opened this issue May 11, 2023 · 2 comments
Open

[Models: Automatic BoxCox estimation inside AutoARIMA] #485

JSzitas opened this issue May 11, 2023 · 2 comments

Comments

@JSzitas
Copy link

JSzitas commented May 11, 2023

Description

Hello! Thanks for the nice package :)

I was hoping for functionality to the effect of 'automatically estimate box cox lambda parameter from available data'.
Note that this is very easy to do using scipy.stats.boxcox:

# df is some pandas dataframe that conforms to your format 
import scipy.stats.boxcox as bc 

box_cox_lambda_estimated_by_maximum_likelihood = bc(df['y'].values, None)[1]

I suggest this could be done within AutoARIMA, e.g. for a setting of blambda = -1:

AutoARIMA(blambda = -1)

Use case

The above is not easy to pass to the underlying AutoARIMA functionality (as each series would have it's own BoxCox parameter) without breaking parallelism (and potentially cross-validation; if I run boxcox on the whole of data, I cannot pass that to window based cv - I would have to redo the lambda estimation for each window to not leak information about the future).

Thus, this workflow would require a substantial sacrifice for a user to implement, which is why I would like you to consider supporting it (I am happy to supply the PR that implements this).

Thank you for consideration!

@na185118
Copy link

na185118 commented Jun 6, 2023

I tried to pass blambda=1 as a parameter in AutoARIMA function and it gave the below error:

NotImplementedError: blambda != None

Please suggest whether this function supports box-cox transformation as I see the transformation code is commented out in code.

@SaintRod
Copy link

I receive the same NotImplementedError: blambda != None error when blambda is not None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants