SensitivityAnalysis.compute_uplift_curve_respect_to_base#
- SensitivityAnalysis.compute_uplift_curve_respect_to_base(results, ref, extend_idata=False)[fuente]#
Return uplift curves referenced to a baseline.
- Parameters:
- results
Output from
run_sweep(), typically with dims("sample", "sweep", *extra_dims).- ref
Baseline to subtract from
results. Can be a scalar (float or int) or anxarray.DataArraysharing a subset of theresultsdimensions (e.g. control, country). The coordinates for overlapping dimensions must match exactly so that the subtraction is well defined.- extend_idata
When
Truethe uplift is also persisted underidata.sensitivity_analysis["uplift_curve"].