1b12a45ddd604bdcbb01ef7016e6da491e8d3c10,optuna/storages/cached_storage.py,_CachedStorage,set_trial_state,#_CachedStorage#Any#Any#,135

Before Change


                    del self._studies[study_id].trials[number]
                return ret

        return self._backend.set_trial_state(trial_id, state)

    def set_trial_param(
        self,
        trial_id: int,

After Change


                updates = self._get_updates(trial_id)
                cached_trial.state = state
                updates.state = state
                if cached_trial.state.is_finished():
                    updates.datetime_complete = datetime.datetime.now()
                    cached_trial.datetime_complete = datetime.datetime.now()
                return self._flush_trial(trial_id)

        ret = self._backend.set_trial_state(trial_id, state)
        if (
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pfnet/optuna
Commit Name: 1b12a45ddd604bdcbb01ef7016e6da491e8d3c10
Time: 2020-05-21
Author: ytsmiling@gmail.com
File Name: optuna/storages/cached_storage.py
Class Name: _CachedStorage
Method Name: set_trial_state


Project Name: ray-project/ray
Commit Name: ee99c919e3c72ce65b68b5dbda7743b2735f2c71
Time: 2020-09-17
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/tests/test_var.py
Class Name: VariantGeneratorTest
Method Name: generate_trials


Project Name: ray-project/ray
Commit Name: ee99c919e3c72ce65b68b5dbda7743b2735f2c71
Time: 2020-09-17
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/tests/test_ray_trial_executor.py
Class Name: RayTrialExecutorTest
Method Name: generate_trials