f559fd7a6216be535e7ef8976041f2997e90c946,optuna/storages/rdb/storage.py,RDBStorage,set_trial_system_attr,#RDBStorage#Any#Any#Any#,434

Before Change


        session = self.scoped_session()

        trial = models.TrialModel.find_or_raise_by_id(trial_id, session)
        self._check_trial_is_updatable(trial)

        attribute = models.TrialSystemAttributeModel.find_by_trial_and_key(trial, key, session)
        if attribute is None:
            attribute = models.TrialSystemAttributeModel(

After Change


        session = self.scoped_session()

        trial = models.TrialModel.find_or_raise_by_id(trial_id, session)
        self.check_trial_is_updatable(trial_id, trial.state)

        attribute = models.TrialSystemAttributeModel.find_by_trial_and_key(trial, key, session)
        if attribute is None:
            attribute = models.TrialSystemAttributeModel(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: set_trial_system_attr


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: set_trial_param


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: set_trial_value


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: set_trial_intermediate_value


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: set_trial_state


Project Name: pfnet/optuna
Commit Name: f559fd7a6216be535e7ef8976041f2997e90c946
Time: 2019-04-12
Author: phjgt308@gmail.com
File Name: optuna/storages/rdb/storage.py
Class Name: RDBStorage
Method Name: set_trial_user_attr