facebookexperimental / Robyn

Robyn is an experimental, AI/ML-powered and open sourced Marketing Mix Modeling (MMM) package from Meta Marketing Science. Our mission is to democratise modeling knowledge, inspire the industry through innovation, reduce human bias in the modeling process & build a strong open source marketing science community.
https://facebookexperimental.github.io/Robyn/
MIT License
1.16k stars 346 forks source link

Feature/calibration input validation #1070

Closed shivkanthb closed 1 month ago

shivkanthb commented 1 month ago

Project Robyn

Summary of Changes

This PR introduces a new CalibrationInputValidation class and corresponding unit tests to ensure the validity of calibration input data in the Robyn project. The validation checks include:

Fixes # (issue number, if applicable)

Type of change

How Has This Been Tested?

A comprehensive suite of unit tests has been implemented to cover various scenarios:

The test_validate function provides an end-to-end test of the validation process

shivkanthb commented 1 month ago

In addition to the calibration validation i also added another function check_obj_weights which seemed important. The function implementation is in place and tested with unit tests but not called anywhere yet in calibration. Feel free to move that later to the right spot (maybe some catch all validation class) or remove if not needed.