ParamSetCollection {paradox}R Documentation

ParamSetCollection

Description

A collection of multiple ParamSet objects.

Super class

paradox::ParamSet -> ParamSetCollection

Active bindings

params

(named list())
List of Param, named with their respective ID.

params_unid

(named list())
List of Param, named with their true ID. However, this field has the Param's ⁠$id⁠ value set to a potentially invalid value. This active binding should only be used internally.

deps

(data.table::data.table())
Table has cols id (character(1)) and on (character(1)) and cond (Condition). Lists all (direct) dependency parents of a param, through parameter IDs. Internally created by a call to add_dep. Settable, if you want to remove dependencies or perform other changes.

values

(named list())
Currently set / fixed parameter values. Settable, and feasibility of values will be checked when you set them. You do not have to set values for all parameters, but only for a subset. When you set values, all previously set values will be unset / removed.

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage
ParamSetCollection$new(sets)
Arguments
sets

(list() of ParamSet)
Parameter objects are cloned.


Method add()

Adds a set to this collection.

Usage
ParamSetCollection$add(p)
Arguments
p

(ParamSet).


Method remove_sets()

Removes sets of given ids from collection.

Usage
ParamSetCollection$remove_sets(ids)
Arguments
ids

(character()).


Method subset()

Only included for consistency. Not allowed to perform on ParamSetCollections.

Usage
ParamSetCollection$subset(ids)
Arguments
ids

(character()).


Method clone()

The objects of this class are cloneable with this method.

Usage
ParamSetCollection$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package paradox version 0.11.1 Index]