Skip to content

Instantly share code, notes, and snippets.

@ckrapu
Created April 1, 2021 16:30
Show Gist options
  • Save ckrapu/88ccd32f80fd82b1e2b8af78138f653a to your computer and use it in GitHub Desktop.
Save ckrapu/88ccd32f80fd82b1e2b8af78138f653a to your computer and use it in GitHub Desktop.
test-error-msg-v4.txt
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-6e14f40a5c7d> in <module>
5 p = pm.Uniform("p", 0, 1)
6 pm.Binomial("w", p=p, n=2, observed=1)
----> 7 inference_data = pm.sample(500, chains=2, return_inferencedata=True)
8
9 assert inference_data
~/anaconda3/envs/pymc3-dev-py39/lib/python3.9/site-packages/pymc3-3.11.1-py3.9.egg/pymc3/sampling.py in sample(draws, step, init, n_init, start, trace, chain_idx, chains, cores, tune, progressbar, model, random_seed, discard_tuned_samples, compute_convergence_checks, callback, jitter_max_retries, return_inferencedata, idata_kwargs, mp_ctx, pickle_backend, **kwargs)
580 _print_step_hierarchy(step)
581 try:
--> 582 trace = _mp_sample(**sample_args, **parallel_args)
583 except pickle.PickleError:
584 _log.warning("Could not pickle model, sampling singlethreaded.")
~/anaconda3/envs/pymc3-dev-py39/lib/python3.9/site-packages/pymc3-3.11.1-py3.9.egg/pymc3/sampling.py in _mp_sample(draws, tune, step, chains, cores, chain, random_seed, start, progressbar, trace, model, callback, discard_tuned_samples, mp_ctx, pickle_backend, **kwargs)
1489 traces.append(strace)
1490
-> 1491 sampler = ps.ParallelSampler(
1492 draws,
1493 tune,
~/anaconda3/envs/pymc3-dev-py39/lib/python3.9/site-packages/pymc3-3.11.1-py3.9.egg/pymc3/parallel_sampling.py in __init__(self, draws, tune, chains, cores, seeds, start_points, step_method, start_chain_num, progressbar, mp_ctx, pickle_backend)
422 if mp_ctx.get_start_method() != "fork":
423 if pickle_backend == "pickle":
--> 424 step_method_pickled = pickle.dumps(step_method, protocol=-1)
425 elif pickle_backend == "dill":
426 try:
AttributeError: Can't pickle local object 'bounded_cont_transform.<locals>.transform_params'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment