Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Design

Design of Configurations


Description

A lightweight wrapper around a ParamSet and a data.table::data.table(), where the latter is a design of configurations produced from the former - e.g., by calling a generate_design_grid() or by sampling.

Public fields

param_set

(ParamSet).

data

(data.table::data.table())
Stored data.

Methods

Public methods


Method new()

Creates a new instance of this R6 class.

Usage
Design$new(param_set, data, remove_dupl)
Arguments
param_set

(ParamSet).

data

(data.table::data.table())
Stored data.

remove_dupl

(logical(1))
Remove duplicates?


Method format()

Helper for print outputs.

Usage
Design$format()

Method print()

Printer.

Usage
Design$print(...)
Arguments
...

(ignored).


Method transpose()

Converts data into a list of lists of row-configurations, possibly removes NA entries of inactive parameter values due to unsatisfied dependencies, and possibly calls the trafo function of the ParamSet.

Usage
Design$transpose(filter_na = TRUE, trafo = TRUE)
Arguments
filter_na

(logical(1))
Should NA entries of inactive parameter values due to unsatisfied dependencies be removed?

trafo

(logical(1))
Should the trafo function of the ParamSet be called?


Method clone()

The objects of this class are cloneable with this method.

Usage
Design$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


paradox

Define and Work with Parameter Spaces for Complex Algorithms

v0.7.1
LGPL-3
Authors
Michel Lang [cre, aut] (<https://orcid.org/0000-0001-9754-0393>), Bernd Bischl [aut] (<https://orcid.org/0000-0001-6002-6980>), Jakob Richter [aut] (<https://orcid.org/0000-0003-4481-5554>), Xudong Sun [aut] (<https://orcid.org/0000-0003-3269-2307>), Martin Binder [aut], Marc Becker [ctb] (<https://orcid.org/0000-0002-8115-0400>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.