Closed alxlyj closed 1 month ago
for reference, this is what we are seeing for calibration input from the R side:
now supports combination of channel in calibration input itself. For example - currently calibration_input is Dict[channel:, channelCalibrationData]. If we can have Dict[List[channel], channelCalibrationData].
i.e.: calibration_data = { ["facebook"]: ChannelCalibrationData( # Single channel as a list lift_start_date=pd.Timestamp("2023-01-01"), lift_end_date=pd.Timestamp("2023-01-31"), lift_abs=1000, spend=5000 ), ["search", "tv"]: ChannelCalibrationData( # Multiple channels as a list lift_start_date=pd.Timestamp("2023-02-01"), lift_end_date=pd.Timestamp("2023-02-28"), lift_abs=2000, spend=8000 ) } calibration_input = CalibrationInput(channel_data=calibration_data)
Project Robyn
As titled. We are adding the necessary interfaces and implementation for calibration component. We also integrated the new addition from calibration to modeling. These are also integrated and tested on a tutorial notebook.
Test Plan
Code flow sequence diagram on R side:
Tutorial notebook results with calibration:
Calibration input:
Calibration Results:
Accuracy of calibration will be vetted in a future PR.