Skip to content

Update notebooks and examples #2834

Closed
Closed
@junpenglao

Description

@junpenglao

As discussed in the lab meeting today, we should update all notebooks and examples to the most recent recommended practice, including:

  • remove find_MAP as initiating the sampling
  • multiple chains
  • update kwarg (especially after Replace njobs with cores argument #2831)
  • unify notebook format, eg:
    • moving original author information to the bottom of the notebook
    • color style (maybe plt.style.use('seaborn-darkgrid')?)
    • move import below title (some are above)
  • simplify http://docs.pymc.io/notebooks/getting_started.html (maybe a bit too formal as the content is mostly taken from the pymc3 paper)
  • some notebook is not indexed on the website: eg updating_priors.ipynb

Checklist for updating notebook:

  • move original author information to the bottom of the notebook
  • remove find_MAP as initiating the sampling, use multiple chains and default sampling as much as possible
  • update kwarg when possible
  • move import below the title and use below format for the first cell
%matplotlib inline
import pymc3 as pm
import numpy as np
import matplotlib.pyplot as plt

plt.style.use('seaborn-darkgrid')
print('Running on PyMC3 v{}'.format(pm.__version__))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions