Skip to content

ML.EVAL.REGRESSION.D2_TWEEDIE_SCORE

Returns the D^2 regression score function, fraction of Tweedie deviance explained.

Syntax

ML.EVAL.REGRESSION.D2_TWEEDIE_SCORE(y_true, y_pred, sample_weight, power)

Arguments

Name Type Default Description
y_true object DataFrame or array object of ground-truth target values.
y_pred object DataFrame or array object of predicted target values.
sample_weight Any None Optional DataFrame or array object of per-sample weights. Omit for uniform weights.
power Any 0 Tweedie power parameter. 0 = normal, 1 = Poisson, 2 = Gamma, 3 = inverse Gaussian; values in (1, 2) correspond to compound Poisson.

Examples

Examples coming soon

Working Excel formula examples for this function are not yet written.

See also