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

Remove warnings during tests #823

Merged
merged 11 commits into from
Jul 11, 2024
Merged

Remove warnings during tests #823

merged 11 commits into from
Jul 11, 2024

Conversation

wd60622
Copy link
Contributor

@wd60622 wd60622 commented Jul 9, 2024

Description

Related Issue

  • Closes #
  • Related to #

Checklist

Modules affected

  • MMM
  • CLV

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc-marketing--823.org.readthedocs.build/en/823/

Copy link

codecov bot commented Jul 9, 2024

Codecov Report

Attention: Patch coverage is 93.10345% with 2 lines in your changes missing coverage. Please review.

Project coverage is 94.38%. Comparing base (05abba7) to head (f6641d3).
Report is 192 commits behind head on main.

Files with missing lines Patch % Lines
pymc_marketing/mmm/budget_optimizer.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #823      +/-   ##
==========================================
+ Coverage   94.35%   94.38%   +0.02%     
==========================================
  Files          32       33       +1     
  Lines        3261     3278      +17     
==========================================
+ Hits         3077     3094      +17     
  Misses        184      184              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wd60622
Copy link
Contributor Author

wd60622 commented Jul 9, 2024

WIP. The more the merrier

@juanitorduz
Copy link
Collaborator

Great 🙌

@wd60622 wd60622 requested a review from juanitorduz July 10, 2024 17:25
@wd60622 wd60622 marked this pull request as ready for review July 10, 2024 17:25
@wd60622
Copy link
Contributor Author

wd60622 commented Jul 10, 2024

Only 7 warnings on the 3.10 tests now. Mainly from the CLV fits with potentials
Any thoughts on this?
https://github.com/pymc-labs/pymc-marketing/actions/runs/9876739390/job/27276622994

@wd60622
Copy link
Contributor Author

wd60622 commented Jul 10, 2024

Bunch of warnings from pytest deprecations upcoming in python 3.14...

Copy link
Collaborator

@juanitorduz juanitorduz left a comment

Choose a reason for hiding this comment

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

LGTM. Just a suggestion about the docs :)

Comment on lines 88 to 92
adstock_max_lag: int | None = Field(
None,
gt=0,
description="Number of lags to consider in the adstock transformation.",
),
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we have a default of None we must ensure in the docstrings and the Field description what is the max lag used. From what I see below is 10 but this has to be explicit for the user in the docs :)

@wd60622 wd60622 requested a review from juanitorduz July 11, 2024 11:56
@juanitorduz juanitorduz merged commit d235ff4 into main Jul 11, 2024
11 of 13 checks passed
@juanitorduz juanitorduz deleted the remove-test-warnings branch July 11, 2024 12:01
@juanitorduz
Copy link
Collaborator

Thanks @wd60622 !

twiecki pushed a commit that referenced this pull request Sep 10, 2024
* address save and load tests

* catch warning on load

* remove warnings in budget optimizer

* remove plotting warnings

* remove validating warnings

* consolidate the loading function

* remove warnings in tests

* incorporate the docstring feedback

* only one deprecation warnings on DelayedSaturatedMMM

* dont have deprecation on test
twiecki pushed a commit that referenced this pull request Sep 10, 2024
* address save and load tests

* catch warning on load

* remove warnings in budget optimizer

* remove plotting warnings

* remove validating warnings

* consolidate the loading function

* remove warnings in tests

* incorporate the docstring feedback

* only one deprecation warnings on DelayedSaturatedMMM

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

Successfully merging this pull request may close these issues.

2 participants