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

keep date column in test_scale_lift_measurements #1316

Merged
merged 13 commits into from
Jan 14, 2025

Conversation

malitsadok1
Copy link
Contributor

@malitsadok1 malitsadok1 commented Dec 25, 2024

Description

Related Issue

Checklist

Modules affected

  • MMM
  • CLV

Type of change

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

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

@github-actions github-actions bot added the MMM label Dec 25, 2024
@malitsadok1
Copy link
Contributor Author

#1311

@juanitorduz juanitorduz requested a review from wd60622 December 25, 2024 19:34
@juanitorduz
Copy link
Collaborator

pre-commit.ci autofix

@juanitorduz juanitorduz added the bug Something isn't working label Dec 25, 2024
Copy link

codecov bot commented Dec 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.35%. Comparing base (8d94482) to head (ce9d4c7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1316   +/-   ##
=======================================
  Coverage   95.35%   95.35%           
=======================================
  Files          47       47           
  Lines        4995     4997    +2     
=======================================
+ Hits         4763     4765    +2     
  Misses        232      232           

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

else:
components = [df_lift_test_channel_scaled, df_target_scaled, df_sigma_scaled]

return pd.concat(components, axis=1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be great if you could add a test. Maybe @wd60622 can help you with this (I do not know how easy is to add it into the current test-mocking flow :) )

Copy link
Contributor

@wd60622 wd60622 left a comment

Choose a reason for hiding this comment

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

Thanks for making the change @malitsadok1 !

For a test, I think it would be suffice to show that the model with tvp_media can be built and add a lift test. If you are unfamiliar with pytest, let me know and I can help out.
Also make sure that any current tests will pass

@wd60622
Copy link
Contributor

wd60622 commented Dec 26, 2024

pre-commit.ci autofix

@wd60622 wd60622 changed the title keep date column in test_scale_lift_measurements keep date column in test_scale_lift_measurements Dec 28, 2024
@github-actions github-actions bot added tests TVPs Related to time varying parameters lift tests labels Dec 29, 2024
@wd60622 wd60622 added this to the 0.11.0 milestone Dec 29, 2024
@wd60622
Copy link
Contributor

wd60622 commented Dec 29, 2024

pre-commit.ci autofix

@wd60622
Copy link
Contributor

wd60622 commented Jan 8, 2025

Hi @malitsadok1
How is this coming along? Let us know if you need a hand on this. We are happy to help out if needed

).loc[
:,
["channel", "x", "delta_x", "delta_y", "sigma"]
+ (["date"] if "date" in df_lift_test_with_numerics.columns else []),
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this ever not true?

Copy link
Contributor

Choose a reason for hiding this comment

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

@wd60622
Copy link
Contributor

wd60622 commented Jan 10, 2025

Hi @malitsadok1
Do you have precommit installed in your dev setup?

@malitsadok1
Copy link
Contributor Author

malitsadok1 commented Jan 10, 2025 via email

@wd60622
Copy link
Contributor

wd60622 commented Jan 12, 2025

Yeah, it is easy to install and run. It should be easy to resolve this locally. If not, try the # type: ignore

Copy link
Contributor

@wd60622 wd60622 left a comment

Choose a reason for hiding this comment

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

Thanks @malitsadok1

@wd60622 wd60622 merged commit 169eb1f into pymc-labs:main Jan 14, 2025
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lift tests MMM tests TVPs Related to time varying parameters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

time_varying_media and calibration
3 participants