0d97bc0bb3db40017f1278d6c1f292ea0f789ab0,gpflow/optimizers/mcmc.py,SamplingHelper,__init__,#SamplingHelper#Any#Any#,54
Before Change
self._parameters = []
self._unconstrained_variables = []
for p in self._model_parameters:
self._unconstrained_variables.append(
p.unconstrained_variable if isinstance(p, Parameter) else p
)
self._parameters.append(p)
@property
def current_state(self):
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]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: NTMC-Community/MatchZoo
Commit Name: a871536bcbb38b9ca03b0bc777712d8c0a79ad90
Time: 2018-12-13
Author: i@uduse.com
File Name: matchzoo/data_pack/pack.py
Class Name:
Method Name: pack
Project Name: NifTK/NiftyNet
Commit Name: e9fb47f90dacd64ee9bfe7aafca59b5ff75e739f
Time: 2017-08-13
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/misc_io.py
Class Name:
Method Name: do_resampling