Param_Continuous#

class obsidian.parameters.continuous.Param_Continuous(name: str, min: int | float, max: int | float, search_min: int | float | None = None, search_max: int | float | None = None)[source]#

Bases: Parameter

Represents a continuous parameter.

name#

The name of the parameter.

Type:

str

min#

The minimum value of the parameter.

Type:

int or float

max#

The maximum value of the parameter.

Type:

int or float

Properties:

range (int): The range of the parameter (max - min).

__init__(name: str, min: int | float, max: int | float, search_min: int | float | None = None, search_max: int | float | None = None)[source]#

Methods

__init__(name, min, max[, search_min, ...])

decode(X)

Decode parameter from transformed space

encode(X)

Encode parameter to a format that can be used for training

load_state(obj_dict)

Load the state of the Parameter object from a dictionary.

open_search()

Set the search space to the parameter space

save_state()

Save the state of the Parameter object.

set_search(search_min, search_max)

Set the search space for the parameter

unit_demap(X)

unit_map(X)

Attributes

range

The range of the parameter (max - min)

decode(X)#

Decode parameter from transformed space

encode(X)#

Encode parameter to a format that can be used for training

Set the search space to the parameter space

property range#

The range of the parameter (max - min)

Set the search space for the parameter

Parameters:
  • search_min (int or float) – The minimum value of the search space.

  • search_max (int or float) – The maximum value of the search space.