Description Usage Arguments Value
A non-S3 "constructor" function that returns a list representing a pylift uplift eval object, PlUpliftEval. This object contains metrics and can be used to generate plots.
1 2 | new_PlUpliftEval(treatment = integer(), outcome = integer(),
prediction = numeric(), p = "infer", n_bins = 20)
|
treatment |
numeric vector of treatment identifiers |
outcome |
numeric vector of outcomes |
prediction |
numeric vector of uplift predictions |
p |
optional "infer", numeric, numeric vector representing treatment propensities |
n_bins |
integer number of bins on x-axis; default 20 |
a list representing a pylift uplift eval object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.