check_direction
| Name | Type | Default | Description |
|---|---|---|---|
value | str | -- | | list[str] Direction. |
| Type | Description |
|---|---|
ValueError | If direction is not “maximize” or “minimize”. |
TypeError | If direction is not a string or a list |
BaseOptunaTrial
Ancestors
abc.ABC
Descendants
systematica.tuners.optuna_.utils.Categoricalsystematica.tuners.optuna_.utils.Floatsystematica.tuners.optuna_.utils.Intsystematica.tuners.optuna_.utils.Param
Methods
suggest
| Name | Type | Default | Description |
|---|---|---|---|
trial | optuna.Trial | -- | The Optuna trial object. |
| Type | Description |
|---|---|
tp.Any | A suggested value for the parameter. |
Float
Ancestors
systematica.tuners.optuna_.utils.BaseOptunaTrialabc.ABC
Instance variables
-
high: float: Upper endpoint of the range of suggested values.highis included in the range.highmust be greater than or equal tolow. -
log: bool: A flag to sample the value from the log domain or not. IflogisTrue, the value is sampled from the range in the log domain. Otherwise, the value is sampled from the range in the linear domain. -
low: float: Lower endpoint of the range of suggested values.lowis included in the range.lowmust be less than or equal tohigh. IflogisTrue,lowmust be larger than 0. -
name: str: A parameter name. -
step: float | None: A step of discretization.
Methods
suggest
| Name | Type | Default | Description |
|---|---|---|---|
trial | optuna.Trial | -- | The Optuna trial object. |
| Type | Description |
|---|---|
float | A suggested float value. |
Int
Ancestors
systematica.tuners.optuna_.utils.BaseOptunaTrialabc.ABC
Instance variables
-
high: int: Upper endpoint of the range of suggested values.highis included in the range.highmust be greater than or equal tolow. -
log: bool: A flag to sample the value from the log domain or not. Iflogis true, the value is sampled from the range in the log domain. Otherwise, the value is sampled from the range in the linear domain. -
low: int: Lower endpoint of the range of suggested values.lowis included in the range.lowmust be less than or equal tohigh. IflogisTrue,lowmust be larger than 0. -
name: str: A parameter name. -
step: int: A step of discretization.
Methods
suggest
[\mathsf{low}, \mathsf{high}].
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
trial | optuna.Trial | -- | The Optuna trial object. |
| Type | Description |
|---|---|
int | A suggested int value. |
Categorical
Ancestors
systematica.tuners.optuna_.utils.BaseOptunaTrialabc.ABC
Instance variables
-
choices: Sequence[bool | int | float | str | None]: Parameter value candidates. -
name: str: A parameter name.
Methods
suggest
choices.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
trial | optuna.Trial | -- | The Optuna trial object. |
| Type | Description |
|---|---|
optuna.distributions.CategoricalChoiceType | A suggested categorical value. |
Param
Ancestors
systematica.tuners.optuna_.utils.BaseOptunaTrialabc.ABC
Instance variables
-
choices: Sequence[bool | int | float | str | None]: Parameter value candidates. -
high: int: Upper endpoint of the range of suggested values.highis included in the range.highmust be greater than or equal tolow. -
log: bool: A flag to sample the value from the log domain or not. Iflogis true, the value is sampled from the range in the log domain. Otherwise, the value is sampled from the range in the linear domain. -
low: int: Lower endpoint of the range of suggested values.lowis included in the range.lowmust be less than or equal tohigh. IflogisTrue,lowmust be larger than 0. -
name: str: A parameter name. -
step: int: A step of discretization.
Methods
suggest
| Name | Type | Default | Description |
|---|---|---|---|
trial | optuna.Trial | -- | The Optuna trial object. |
| Type | Description |
|---|---|
int | float | optuna.distributions.CategoricalChoiceType | A suggested value. |

