selector.pool

In this module the most important data structures are defined.

Classes

Configuration(id, conf, generator)

Configuration data object.

Generator(value)

Generator enumerator.

ParamType(value)

Parameter type enumerator.

Parameter(name, type, bound, default, ...)

Parameter data object.

Status(value)

Status enumerator.

Surrogates(value)

Surrogate type enumerator.

TaskType(value)

Task type enumerator.

Tournament(id, best_finisher, ...)

Tournament data object.

class selector.pool.Configuration(id: int, conf: dict, generator: Enum)[source]

Bases: object

Configuration data object.

Parameters:
  • id (int) – uuid.UUID of the Configuration

  • conf (dict) – {Parameter name : parameter value}

  • generator (selector.pool.Generator) – Identifies how the configuration was generated.

conf: dict
generator: Enum
id: int
class selector.pool.Generator(value)[source]

Bases: Enum

Generator enumerator.

base = 8
cppl = 7
ggapp = 6
lhc = 4
random = 2
smac = 5
var_graph = 3
class selector.pool.ParamType(value)[source]

Bases: Enum

Parameter type enumerator.

categorical = 1
continuous = 2
integer = 3
class selector.pool.Parameter(name: str, type: str, bound: list, default: int, condition: list, scale: str, original_bound: list)[source]

Bases: object

Parameter data object.

Parameters:
  • name (str) – Parameter name.

  • type (str) – Parameter type

  • bound (list) – Upper and lower bound, or list of possible values.

  • default (int) – Index of the default value in the bound, or float.

  • condition (list) – List of conditional values for this parameter.

  • scale (str) – Linear or log.

  • original_bound (list) – Unprocessed bound (as read in from .pcs).

bound: list
condition: list
name: str
original_bound: list
scale: str
type: str
class selector.pool.Status(value)[source]

Bases: Enum

Status enumerator.

cap = 2
running = 5
stop = 4
timeout = 3
win = 1
class selector.pool.Surrogates(value)[source]

Bases: Enum

Surrogate type enumerator.

CPPL = 3
SMAC = 1
class selector.pool.TaskType(value)[source]

Bases: Enum

Task type enumerator.

monitor = 2
target_algorithm = 1
class selector.pool.Tournament(id: int, best_finisher: list, worst_finisher: list, configurations: list, configuration_ids: list, ray_object_store: dict, instance_set: list, instance_set_id: int)[source]

Bases: object

Tournament data object.

Parameters:
  • name (str) – Parameter name.

  • best_finisher (list) – Winner(s) of the tournament.

  • worst_finisher (list) – The rest of the participants.

  • configurations (list) – List of configuration IDs.

  • ray_object_store (dict) – Ray object adresses.

  • instance_set (list) – Tournament instance names.

  • instance_set_id (int) – ID of the instance set.

best_finisher: list
configuration_ids: list
configurations: list
id: int
instance_set: list
instance_set_id: int
ray_object_store: dict
worst_finisher: list