2e7dc431b92fd66702ec1c1cd3142c3335c0f490,optuna/storages/_rdb/storage.py,RDBStorage,_update_trial,#RDBStorage#Any#Any#Any#Any#Any#Any#Any#Any#Any#,593
Before Change
for value_model in value_models
}
for s, vs in step_to_values.items():
for objective_id, v in enumerate(vs):
if (s, objective_id) in value_dict:
value_dict[(s, objective_id)].value = v
session.add(value_dict[(s, objective_id)])
else:
trial_model.step_to_values.extend(
[
models.TrialStepToValueModel(
step=s, objective_id=objective_id, value=v
)
]
)
if params and distributions_:
trial_param = (
session.query(models.TrialParamModel)
.filter(models.TrialParamModel.trial_id == trial_id)
After Change
if s in value_dict:
value_dict[s].value = v
session.add(value_dict[s])
trial_model.intermediate_values.extend(
models.TrialIntermediateValueModel(step=s, value=v)
for s, v in intermediate_values.items()
if s not in value_dict
)
if params and distributions_:
trial_param = (
session.query(models.TrialParamModel)
.filter(models.TrialParamModel.trial_id == trial_id)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances
Project Name: pfnet/optuna
Commit Name: 2e7dc431b92fd66702ec1c1cd3142c3335c0f490
Time: 2020-11-10
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/storages/_rdb/storage.py
Class Name: RDBStorage
Method Name: _update_trial
Project Name: pantsbuild/pants
Commit Name: fd3a865b4b7130ee64aaee259f40d3c425021484
Time: 2019-05-14
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/option/compiler_option_sets_mixin.py
Class Name: CompilerOptionSetsMixin
Method Name: get_merged_args_for_compiler_option_sets
Project Name: deepmipt/DeepPavlov
Commit Name: 5f1388ca05428f0cf5e16a8114b0720267e315bd
Time: 2018-09-12
Author: peganov@phystech.edu
File Name: deeppavlov/core/models/tf_model.py
Class Name: TFModel
Method Name: get_train_op
Project Name: wenwei202/iss-rnns
Commit Name: c0095111d1f19476f56ea76854d9e0b38e50b38f
Time: 2016-10-26
Author: seominjoon@gmail.com
File Name: my/utils.py
Class Name:
Method Name: process_tokens
Project Name: deepchem/deepchem
Commit Name: 1a0076e622d01ede3af3e0a7beecfc599172ce3a
Time: 2017-01-31
Author: zqwu@stanford.edu
File Name: deepchem/splits/splitters.py
Class Name: IndiceSplitter
Method Name: split