d5d2a849496362535ceaeef92aff9bec4e2edeba,optuna/storages/in_memory.py,InMemoryStorage,get_all_trials,#InMemoryStorage#Any#Any#,342

Before Change


            if deepcopy:
                return copy.deepcopy(self.trials)
            else:
                return [t for t in self.trials]

    def get_n_trials(self, study_id, state=None):
        // type: (int, Optional[TrialState]) -> int

After Change



        self._check_study_id(study_id)
        with self._lock:
            if deepcopy:
                return [copy.deepcopy(self._trials[tid]) for tid in self._study_trials[study_id]]
            else:
                return [self._trials[tid] for tid in self._study_trials[study_id]]

    def get_n_trials(self, study_id, state=None):
        // type: (int, Optional[TrialState]) -> int

        self._check_study_id(study_id)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pfnet/optuna
Commit Name: d5d2a849496362535ceaeef92aff9bec4e2edeba
Time: 2020-04-30
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: get_all_trials


Project Name: pfnet/optuna
Commit Name: 22b18bb518b1a7aad449ba227ebdaf58e4edb36f
Time: 2020-05-13
Author: 38826298+HideakiImamura@users.noreply.github.com
File Name: optuna/samplers/cmaes.py
Class Name:
Method Name: _get_complete_trials


Project Name: pfnet/optuna
Commit Name: 26453d58671e01410b22287a723f76d6bb98803f
Time: 2020-05-11
Author: ytsmiling@gmail.com
File Name: optuna/storages/in_memory.py
Class Name: InMemoryStorage
Method Name: get_all_trials