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

Port GARCH11 to v4 #6119

Merged
merged 7 commits into from
Sep 14, 2022
Merged

Port GARCH11 to v4 #6119

merged 7 commits into from
Sep 14, 2022

Conversation

junpenglao
Copy link
Member

@junpenglao junpenglao commented Sep 11, 2022

What is this PR about?
Porting GARCH11 to v4 (#4642)

Checklist

Major / Breaking Changes

  • N/A

Bugfixes

  • Refactor GARCH11 to work in v4

Docs / Maintenance

  • N/A

@codecov
Copy link

codecov bot commented Sep 11, 2022

Codecov Report

Merging #6119 (6dbe156) into main (4954fd4) will decrease coverage by 1.43%.
The diff coverage is 99.15%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6119      +/-   ##
==========================================
- Coverage   92.10%   90.66%   -1.44%     
==========================================
  Files          86      102      +16     
  Lines       17844    21317    +3473     
==========================================
+ Hits        16436    19328    +2892     
- Misses       1408     1989     +581     
Impacted Files Coverage Δ
pymc/tests/distributions/test_distribution.py 97.83% <ø> (+0.09%) ⬆️
pymc/distributions/timeseries.py 84.94% <98.46%> (+6.41%) ⬆️
pymc/tests/distributions/test_timeseries.py 95.78% <100.00%> (+2.03%) ⬆️
pymc/variational/test_functions.py 38.09% <0.00%> (-61.91%) ⬇️
pymc/variational/stein.py 48.33% <0.00%> (-51.67%) ⬇️
pymc/variational/operators.py 57.14% <0.00%> (-35.72%) ⬇️
pymc/variational/inference.py 50.77% <0.00%> (-35.32%) ⬇️
pymc/variational/approximations.py 54.79% <0.00%> (-32.53%) ⬇️
pymc/variational/callbacks.py 78.00% <0.00%> (-18.00%) ⬇️
pymc/variational/opvi.py 75.20% <0.00%> (-11.85%) ⬇️
... and 30 more

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

This looks great @junpenglao! Some comments/suggestions below

pymc/distributions/timeseries.py Show resolved Hide resolved
pymc/distributions/timeseries.py Show resolved Hide resolved
pymc/distributions/timeseries.py Outdated Show resolved Hide resolved
pymc/distributions/timeseries.py Outdated Show resolved Hide resolved
pymc/distributions/timeseries.py Show resolved Hide resolved
pymc/distributions/timeseries.py Show resolved Hide resolved
pymc/distributions/timeseries.py Show resolved Hide resolved
Implement momentum and fix some shape bug.
@junpenglao
Copy link
Member Author

@ricardoV94 This is ready.

Copy link
Member

@ricardoV94 ricardoV94 left a comment

Choose a reason for hiding this comment

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

@junpenglao this is great! Only some small typos and questions and a suggestion for the batch test.

pymc/distributions/timeseries.py Outdated Show resolved Hide resolved
pymc/distributions/timeseries.py Outdated Show resolved Hide resolved
pymc/distributions/timeseries.py Show resolved Hide resolved
pymc/distributions/timeseries.py Outdated Show resolved Hide resolved
initial_vol=2.5,
)
kwargs0 = init_kwargs.copy()
kwargs0[arg_name] = init_kwargs[arg_name] * param_val
Copy link
Member

Choose a reason for hiding this comment

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

This is really clever!!!

pymc/tests/distributions/test_timeseries.py Outdated Show resolved Hide resolved
pymc/tests/distributions/test_timeseries.py Outdated Show resolved Hide resolved
@ricardoV94 ricardoV94 added this to the v4.2.0 milestone Sep 14, 2022
@junpenglao
Copy link
Member Author

Thanks for the comments @ricardoV94 !

@ricardoV94 ricardoV94 merged commit 91cbebd into main Sep 14, 2022
@junpenglao junpenglao deleted the ts branch September 14, 2022 17:22
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