pymc-marketing icon indicating copy to clipboard operation
pymc-marketing copied to clipboard

Add CLVWrapper

Open williambdean opened this issue 10 months ago • 3 comments
trafficstars

Description

Building upon CLV MLflow integration. WIP

CC: @ColtAllen

Related Issue

  • [ ] Closes #
  • [ ] Related to #

Checklist

Modules affected

  • [ ] MMM
  • [x] CLV
  • [ ] Customer Choice

Type of change

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

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

williambdean avatar Jan 15 '25 17:01 williambdean

Codecov Report

:x: Patch coverage is 42.85714% with 12 lines in your changes missing coverage. Please review. :warning: Please upload report for BASE (main@492930a). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pymc_marketing/mlflow.py 42.85% 12 Missing :warning:
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1377   +/-   ##
=======================================
  Coverage        ?   92.15%           
=======================================
  Files           ?       64           
  Lines           ?     7448           
  Branches        ?        0           
=======================================
  Hits            ?     6864           
  Misses          ?      584           
  Partials        ?        0           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Jan 15 '25 17:01 codecov[bot]

General question for @ColtAllen

Are you using the save load much? What do you do after loading?

williambdean avatar Jan 15 '25 18:01 williambdean

General question for @ColtAllen

Are you using the save load much? What do you do after loading?

I did monthly model runs at my last company. With about 1.5 million customers the idata file was about 500MB, hence the need for https://github.com/pymc-labs/pymc-marketing/issues/1356. Before loading a model, metrics and number of new customers were checked first to see if retraining was needed. Otherwise, run & rewrite predictions.

ColtAllen avatar Jan 18 '25 17:01 ColtAllen