ce0de9458a793b15db71e1a0d01e8fc45e2aa400,optuna/storages/_rdb/storage.py,RDBStorage,_update_trial,#RDBStorage#Any#Any#Any#Any#Any#Any#Any#Any#Any#,558
Before Change
if value is not None:
trial_values = models.TrialValueModel.where_trial_id(trial_id, session)
trial_values_dict = {v.objective: v for v in trial_values}
for objective, v in enumerate([value]):
if objective in trial_values_dict:
trial_values_dict[objective].value = v
session.add(trial_values_dict[objective])
After Change
values = [value]
trial_values = models.TrialValueModel.where_trial_id(trial_id, session)
if len(trial_values) > 0:
for objective in range(len(values)):
trial_values[objective].value = values[objective]
session.add(trial_values[objective])
else:
for objective in range(len(values)):
trial_model.values.extend(
[models.TrialValueModel(objective=objective, value=values[objective])]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances Project Name: pfnet/optuna
Commit Name: ce0de9458a793b15db71e1a0d01e8fc45e2aa400
Time: 2020-12-02
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: _update_trial
Project Name: pytorch/fairseq
Commit Name: bc936813485a3af8c3b46de470a2b46e0dc46f83
Time: 2020-04-06
Author: chenliu8@fb.com
File Name: fairseq/sequence_generator.py
Class Name: EnsembleModel
Method Name: __init__
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: b5034279b48ae96ffdd4714f96e0f62b0f4807fc
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/ordinal.py
Class Name: OrdinalEncoder
Method Name: ordinal_encoding
Project Name: pytorch/fairseq
Commit Name: 1b749f4a34d0e4c70cb2f98b8cd32b71b9675fe9
Time: 2020-04-07
Author: chenliu8@fb.com
File Name: fairseq/sequence_generator.py
Class Name: EnsembleModel
Method Name: __init__