Skip to contents

Returns the gap between the current best and the known optimum. Assumes minimization; for maximization, negate both values.

Usage

metric_regret(archive, surrogate = NULL, optimum, target = NULL, ...)

Arguments

archive

(bbotk::ArchiveBatch)
The archive.

surrogate

(mlr3mbo::Surrogate)
Ignored.

optimum

(numeric(1))
The known optimal value.

target

(character(1) | NULL)
Target column name.

...

Ignored.

Value

numeric(1) regret (best_y - optimum).