0d97bc0bb3db40017f1278d6c1f292ea0f789ab0,gpflow/optimizers/mcmc.py,SamplingHelper,__init__,#SamplingHelper#,54
Before Change
self._unconstrained_variables.append(
p.unconstrained_variable if isinstance(p, Parameter) else p
)
self._parameters.append(p)
@property
def current_state(self):
Return the current state of the unconstrained variables, used in HMC.
After Change
def __init__(self, target_log_prob_fn: LogProbabilityFunction, parameters: Parameters):
if not all([isinstance(p, Parameter) and p.prior is not None for p in parameters]):
raise ValueError(f"Expected only parameters with priors")
self._parameters = parameters
self._target_log_prob_fn = target_log_prob_fn
self._variables = [p.unconstrained_variable for p in parameters]
@property
def current_state(self):
Return the current state of the unconstrained variables, used in HMC.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances Project Name: GPflow/GPflow
Commit Name: 0d97bc0bb3db40017f1278d6c1f292ea0f789ab0
Time: 2020-03-27
Author: art.art.v@gmail.com
File Name: gpflow/optimizers/mcmc.py
Class Name: SamplingHelper
Method Name: __init__
Project Name: tensorflow/cleverhans
Commit Name: 6d9bd5a28272145a6216bdffec0d8226168f174d
Time: 2019-04-19
Author: papernot@google.com
File Name: cleverhans/future/torch/attacks/projected_gradient_descent.py
Class Name:
Method Name: projected_gradient_descent
Project Name: xinntao/BasicSR
Commit Name: 6917d8a3dbf6617f02b1247fd50fbc20d3cb6fd4
Time: 2018-06-10
Author: wxt1994@126.com
File Name: codes/data/util.py
Class Name:
Method Name: get_image_paths