7bae3828c7149d6d2a409c1236f25f699be92b66,pfnopt/storage/rdb.py,RDBStorage,get_all_trials,#RDBStorage#Any#,245
Before Change
trials = self.session.query(Trial). \
filter(Trial.study_id == study_id).all()
return [self.get_trial(t.trial_id) for t in trials]
def close(self):
// type: () -> None
self.session.close()
After Change
trials = self.session.query(Trial).filter(Trial.study_id == study_id).all()
params = self.session.query(TrialParam).join(Trial). \
filter(Trial.study_id == study_id).all()
values = self.session.query(TrialValue).join(Trial). \
filter(Trial.study_id == study_id).all()
return self._merge_queried_results(trials, params, values)
@staticmethod
def _merge_queried_results(trials, trial_params, trial_intermediate_values):
// type: (List[Trial], List[TrialParam], List[TrialValue]) -> List[trial_module.Trial]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: pfnet/optuna
Commit Name: 7bae3828c7149d6d2a409c1236f25f699be92b66
Time: 2018-03-13
Author: sano@preferred.jp
File Name: pfnopt/storage/rdb.py
Class Name: RDBStorage
Method Name: get_all_trials
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 5b4d04de17457286fe4e5f3e0e8295db42d0f064
Time: 2020-04-05
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_min
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4113a6a3be19167a8c551f8ae20e849ac851e52c
Time: 2019-03-25
Author: zhongjy1992@outlook.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day