The gpl loss of an allocation x against an outcome y is
$$L(x, y) = \kappa[(1 - \alpha)(g(x) - g(y))_+ + \alpha (g(y) - g(x))_+] + \mathrm{offset}(y).$$
With g(x) = x this is the pinball (quantile) loss at level alpha, scaled
by kappa. Despite the name it need not be piecewise linear, since g may
be any non-decreasing increment function.
Arguments
- g
a non-decreasing increment function, supplied either as a function or as a string in the variable
xsuch as"log(x)".- kappa
scale factor.
- alpha
normalized loss when the outcome
yexceeds the allocationx. Exactly one ofalphaandUmust be supplied.- O
cost incurred when the allocation
xexceeds the outcomey; equalskappa * (1 - alpha).- U
cost incurred when the outcome
yexceeds the allocationx; equalskappa * alpha.- offset
a constant, or a function of
y, added to the loss. The default of0gives a loss withL(x, x) = 0.