# sklift.viz.plot_uplift_preds¶

sklift.viz.base.plot_uplift_preds(trmnt_preds, ctrl_preds, log=False, bins=100)[source]

Plot histograms of treatment, control and uplift predictions.

Parameters: trmnt_preds (1d array-like) – Predictions for all observations if they are treatment. ctrl_preds (1d array-like) – Predictions for all observations if they are control. log (bool, default False) – Logarithm of source samples. Default is False. bins (integer or sequence, default 100) – Number of histogram bins to be used. If an integer is given, bins + 1 bin edges are calculated and returned. If bins is a sequence, gives bin edges, including left edge of first bin and right edge of last bin. In this case, bins is returned unmodified. Default is 100. Object that stores computed values.