sdk.algorithm_config.update()

elements.sdk.api.algorithm_config

Update an algorithm configuration.

Update details of an Algorithm Config, so long as it has not been locked. Once the Algorithm Config is used in a computation, it is permanently locked and the specific parameter values can no longer be updated.

Parameters

  • algorithm_config_id (str) - the Algorithm Config you want to update
  • algorithm_config : (AlgorithmConfiguration) - Algorithm Config with fields you want to update

Returns

AlgorithmConfig

Example(s)

None

# Initialize algorithm config
dv_algo_config_update = AlgorithmConfiguration()

# Edit existing parameters
dv_algo_config_update.add_algorithm_parameter(key="look_back_time", value=12)

# Update algorithm config
await sdk.algorithm_config.update(algorithm_config_id="a551c228-f283-42d4-899c-aefa2fa1e52d",
                                  algorithm_config=dv_algo_config_update)