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

ARIMA level/quantile compatibility, missing nbdev_flow, protected gif #102

Merged
merged 4 commits into from
May 3, 2022

Conversation

kdgutier
Copy link
Collaborator

@kdgutier kdgutier commented May 2, 2022

  1. Changed levels order in the models.auto_arima for quantile parsing compatibility.
  2. Completed make file with nbdev_flow
  3. Added gif protection in the .gitignore

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@kdgutier kdgutier requested a review from AzulGarza May 2, 2022 15:01
Copy link
Member

@AzulGarza AzulGarza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @kdgutier! Could you please remove the html changes? To display the outputs in the docs :)

@AzulGarza
Copy link
Member

Additionally, we need to change the following line (AutoARIMA class, predict method),

lo = forecast['lower'].iloc[:,::-1].add_prefix('lo_')

The line orders the low levels; the proposed change makes it unnecessary. We just have to remove the iloc[:,::-1] part.

@@ -2451,7 +2451,7 @@ def predict_in_sample(self, level: Optional[Union[int, Tuple[int]]] = None):
lo = pd.DataFrame(
fitted_values.values.reshape(-1, 1) - quantiles * se.reshape(-1, 1),
columns=[f'lo_{l}%' for l in _level],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to include reversed here for _level.

@kdgutier kdgutier changed the title ARIIMA level/quantile compatibility, missing nbdev_flow, protected gif ARIMA level/quantile compatibility, missing nbdev_flow, protected gif May 2, 2022
@AzulGarza AzulGarza merged commit b31ef56 into main May 3, 2022
@AzulGarza AzulGarza deleted the ARIMAquants_nbdevflow branch May 3, 2022 01:57
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

Successfully merging this pull request may close these issues.

2 participants