a62ace6b21c96cbda5862466928138eeec6177c0,optuna/storages/in_memory.py,InMemoryStorage,set_trial_user_attr,#InMemoryStorage#Any#Any#Any#,377
Before Change
with self._lock:
self._check_trial_id(trial_id)
trial = self._get_trial(trial_id)
self.check_trial_is_updatable(trial_id, trial.state)
with self._lock:
self.check_trial_is_updatable(trial_id, trial.state)
trial = copy.copy(trial)
trial.user_attrs = copy.copy(trial.user_attrs)
trial.user_attrs[key] = value
self._set_trial(trial_id, trial)
def set_trial_system_attr(self, trial_id, key, value):
// type: (int, str, Any) -> None
with self._lock:
After Change
with self._lock:
self._check_trial_id(trial_id)
trial = self._get_trial(trial_id)
self.check_trial_is_updatable(trial_id, trial.state)
self.check_trial_is_updatable(trial_id, trial.state)
trial = copy.copy(trial)
trial.user_attrs = copy.copy(trial.user_attrs)
trial.user_attrs[key] = value
self._set_trial(trial_id, trial)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: pfnet/optuna
Commit Name: a62ace6b21c96cbda5862466928138eeec6177c0
Time: 2020-05-12
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: set_trial_user_attr
Project Name: pfnet/optuna
Commit Name: a62ace6b21c96cbda5862466928138eeec6177c0
Time: 2020-05-12
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: set_trial_intermediate_value
Project Name: pfnet/optuna
Commit Name: a62ace6b21c96cbda5862466928138eeec6177c0
Time: 2020-05-12
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: set_trial_system_attr