72e4750366e3cfb1ebd9f18d4d54ad1f49380928,pymc3/sampling.py,,_mp_sample,#,538
Before Change
start = kwargs.pop("start")
rseed = _parallel_random_seed(random_seed, njobs)
start_vals = _make_parallel(start, njobs)
chains = list(range(chain, chain + njobs))
pbars = [kwargs.pop("progressbar")] + [False] * (njobs - 1)
traces = Parallel(n_jobs=njobs)(delayed(_sample)(chain=chains[i],
progressbar=pbars[i],
random_seed=rseed[i],
start=start_vals[i],
**kwargs) for i in range(njobs))
return merge_traces(traces)
def stop_tuning(step):
After Change
chain = kwargs.pop("chain")
rseed = kwargs.pop("random_seed")
start = kwargs.pop("start")
chains = kwargs.pop("chains")
chain_nums = list(range(chain, chain + chains))
pbars = [kwargs.pop("progressbar")] + [False] * (chains - 1)
jobs = (delayed(_sample)(*args, **kwargs)
for args in zip(chain_nums, pbars, rseed, start))
traces = Parallel(n_jobs=njobs)(jobs)
return MultiTrace(traces)
def stop_tuning(step):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: pymc-devs/pymc3
Commit Name: 72e4750366e3cfb1ebd9f18d4d54ad1f49380928
Time: 2017-10-17
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/sampling.py
Class Name:
Method Name: _mp_sample
Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: eb13c2ea02e0e06c06b288e3590ce04cc014ba04
Time: 2019-03-22
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/topicmod/tm_gensim.py
Class Name: MultiprocEvaluationWorkerGensim
Method Name: fit_model
Project Name: home-assistant/home-assistant
Commit Name: d6abdc0d4efa8386e549a9c8bbacc52bf5c82f7e
Time: 2016-04-08
Author: jaharkes@cs.cmu.edu
File Name: homeassistant/util/yaml.py
Class Name:
Method Name: _ordered_dict
Project Name: matplotlib/matplotlib
Commit Name: 5608ac37feb7fad002c0e030ba30f4924e8c1fc1
Time: 2018-09-24
Author: anntzer.lee@gmail.com
File Name: examples/statistics/barchart_demo.py
Class Name:
Method Name: