utils

Functions

config_hash(config)

Compute hash of given config.

retry(func[, max_retries, sleep_time, jitter])

Retry function call with jitter.

suggest_parameters(trial, params_to_tune)

Suggest parameters for a trial.

config_hash(config: dict)[source]

Compute hash of given config.

Parameters

config (dict) –

retry(func: Callable[[...], Any], max_retries: int = 5, sleep_time: int = 10, jitter: int = 10) Any[source]

Retry function call with jitter.

Parameters
  • func (Callable[[...], Any]) –

  • max_retries (int) –

  • sleep_time (int) –

  • jitter (int) –

Return type

Any

suggest_parameters(trial: optuna.trial._trial.Trial, params_to_tune: Dict[str, etna.distributions.distributions.BaseDistribution]) Dict[str, Any][source]

Suggest parameters for a trial.

Parameters
Return type

Dict[str, Any]