Skip to contents

Generalized Pareto likelihood loss of a EQRN_iid predictor

Usage

compute_EQRN_GPDLoss(
  fit_eqrn,
  X,
  y,
  intermediate_quantiles = NULL,
  interm_lvl = fit_eqrn$interm_lvl,
  device = default_device()
)

Arguments

fit_eqrn

Fitted "EQRN_iid" object.

X

Matrix of covariates.

y

Response variable vector.

intermediate_quantiles

Vector of intermediate conditional quantiles at level fit_eqrn$interm_lvl.

interm_lvl

Optional, checks that interm_lvl == fit_eqrn$interm_lvl.

device

(optional) A torch::torch_device(). Defaults to default_device().

Value

Negative GPD log likelihood of the conditional EQRN predicted parameters over the response exceedances over the intermediate quantiles.