e02039940e6759ca4ce06cd49a4f6d54b5846069,arviz/tests/test_plots.py,TestPlots,setup_class,#Any#,12
Before Change
cls.y = np.asarray([28., 8., -3., 7., -1., 1., 18., 12.])
sigma = np.asarray([15., 10., 16., 11., 9., 11., 10., 18.])
with pm.Model():
mu = pm.Normal("mu", mu=0, sd=5)
tau = pm.HalfCauchy("tau", beta=5)
theta = pm.Normal("theta", mu=mu, sd=tau, shape=num_schools)
pm.Normal("obs", mu=theta, sd=sigma, observed=cls.y)
cls.short_trace = pm.sample(600, chains=2)
After Change
model, cls.short_trace = models["pymc3"]
with model:
cls.sample_ppc = pm.sample_ppc(cls.short_trace, 100)
cls.stan_model, cls.fit = models["pystan"]
cls.df_trace = DataFrame({"a": np.random.poisson(2.3, 100)})
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: arviz-devs/arviz
Commit Name: e02039940e6759ca4ce06cd49a4f6d54b5846069
Time: 2018-06-26
Author: colcarroll@gmail.com
File Name: arviz/tests/test_plots.py
Class Name: TestPlots
Method Name: setup_class
Project Name: GPflow/GPflow
Commit Name: 0d97bc0bb3db40017f1278d6c1f292ea0f789ab0
Time: 2020-03-27
Author: art.art.v@gmail.com
File Name: doc/source/notebooks/advanced/mcmc.pct.py
Class Name:
Method Name:
Project Name: pymc-devs/pymc3
Commit Name: 3f32776f0f58c961a1ad625f3e5e34ce31a9ebbb
Time: 2013-03-15
Author: jsalvatier@gmail.com
File Name: examples/stochastic_volatility.py
Class Name:
Method Name: