fc8ea51490e8d23d26c49403fe3bd40f53e4c66a,gpflow/params/parameterized.py,Parameterized,assign,#Parameterized#Any#Any#Any#,203
Before Change
prev_values = {}
for key in val_keys:
try:
prev_values[key] = params[key].read_value()
params[key].assign(values[key], session=session, force=force)
except (GPflowError, ValueError) as error:
for rkey, rvalue in prev_values.items():
params[rkey].assign(rvalue, session=session, force=True)
After Change
prev_values = {}
for key in val_keys:
try:
prev_value = params[key].read_value().copy()
params[key].assign(values[key], session=session, force=force)
prev_values[key] = prev_value
except (GPflowError, ValueError) as error:
for rkey, rvalue in prev_values.items():
params[rkey].assign(rvalue, session=session, force=True)
raise error
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GPflow/GPflow
Commit Name: fc8ea51490e8d23d26c49403fe3bd40f53e4c66a
Time: 2017-11-14
Author: art.art.v@gmail.com
File Name: gpflow/params/parameterized.py
Class Name: Parameterized
Method Name: assign
Project Name: GPflow/GPflow
Commit Name: fac8000e2135575f622638107a06ff65ba381811
Time: 2017-10-25
Author: james.hensman@gmail.com
File Name: gpflow/params/parameter.py
Class Name: Parameter
Method Name: _format_parameter
Project Name: GPflow/GPflow
Commit Name: 7c2711ffb9edbfbd7db5e1b3d000f8cdc2069b50
Time: 2020-01-10
Author: st--@users.noreply.github.com
File Name: gpflow/base.py
Class Name: Parameter
Method Name: __repr__