Container around a data.table::data.table which stores all performed function calls of the Objective.

Technical details

The data is stored in a private .data field that contains a data.table::data.table which logs all performed function calls of the Objective. This data.table::data.table is accessed with the public $data() method. New values can be added with the $add_evals() method. This however is usually done through the evaluation of the OptimInstance by the Optimizer.

Super class

bbotk::Archive -> MboArchive

Public fields

archive

(bbotk::Archive)

codomain

(paradox::ParamSet)
Codomain of objective function.

search_space

(paradox::ParamSet)
Search space of objective.

added_rows

(data.table::data.table).

added_cols

(data.table::data.table).

Active bindings

n_evals

(integer(1))
Number of evaluations stored in the archive.

n_batch

(integer(1))
Number of batches stored in the archive.

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

MboDummyArchive$new(
  archive,
  codomain = archive$codomain,
  search_space = archive$search_space
)

Arguments

archive

(bbotk::Archive).

codomain

(paradox::ParamSet)

search_space

(paradox::ParamSet)


Method clear()

Clear archive.

Usage

MboDummyArchive$clear()


Method add_evals()

Adds function evaluations to the archive table.

Usage

MboDummyArchive$add_evals(xdt, xss_trafoed = NULL, ydt)

Arguments

xdt

(data.table::data.table.

xss_trafoed

(list())
Transformed point(s) in the domain space

ydt

(data.table::data.table.


Method add_cols()

Add columns.

Usage

MboDummyArchive$add_cols(dt)

Arguments


Method best()

Returns the best scoring evaluation. For single-crit optimization, the solution that minimizes / maximizes the objective function. For multi-crit optimization, the Pareto set / front.

Usage

MboDummyArchive$best(m = NULL)

Arguments

m

(integer())
Take only batches m into account. Default is all batches.

Returns

data.table::data.table().


Method data()

Returns a data.table::data.table which contains all performed Objective function calls.

Usage

MboDummyArchive$data(unnest = NULL)

Arguments

unnest

(character())
Set of column names for columns to unnest via mlr3misc::unnest(). Unnested columns are stored in separate columns instead of list-columns.

Returns

data.table::data.table().


Method print()

Printer.

Usage

MboDummyArchive$print()

Arguments

...

(ignored).


Method clone()

The objects of this class are cloneable with this method.

Usage

MboDummyArchive$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.