Calls one_way() using the modelblueprint's target, exposure, and data
slots. Optionally overlays the model's in-sample predictions to produce
a lift chart (pass predictions = TRUE).
Arguments
- data
A
modelblueprint.- var
[character(1)]Feature to plot on the x-axis.- set
[character(1)]Which dataset to use:"train","test", or"holdout". Default"train".- predictions
[logical(1)]IfTRUE, adds in-sample model predictions as a second line (lift chart mode). DefaultFALSE.- split
[character(1) | NA]Optional split variable.- bins
[integer(1)]Number of bins. Default35L.- type_agg
[character(1)]"equal_exposure"or"equal_range".- ret
[character(1)]"plot"or"data". Default"plot".- ...
Further arguments passed to
one_way().- precomputed_preds
[numeric | NULL]Optional vector of pre-computed predictions (one per row of the requestedset). Only used whenpredictions = TRUE. When supplied, the internalpredict.modelblueprint()call is skipped.