Dev Sprint: Getting the PyMC v4.0 Release Out#
The v4.0 release of the PyMC library was officially announced on June 6, 2022. To achieve this milestone, the PyMC team planned a week-long online sprint beginning May 30, 2022. The goal was to complete remaining issues on the v4.0 release. But, mainly it was to finalize the documentation and update the website for PyMC.
And all 3 websites had separate navigation bars and it was confusing for the users, maybe for the library maintainers too?
This Dev sprint was held on the new PyMC Discord server which easily enables sharing video, camera and screen share and provides an easy way to hop between “channels”.
We shared the sprint events on our new PyMC Online Meetup to involve experienced contributors in the community as well. We had a mix of core contributors and newcomers, which is a great combination, as it enables us to be productive, but also to foster the new generation of core developers. The following team members attended, from various locations around the world:
Thomas Wiecki (Germany)
Ricardo Vieira (Romania)
Christian Luhmann (New York, USA)
Alex Andorra (France)
Michael Osthege (Germany)
Oriol Abril Pla (Finland)
Chris Fonnesbeck (Nashville, USA)
Osvaldo Martin (Argentina)
Maxim Kochurov (Moscow, Russia)
Reshama Shaikh (New York, USA)
The PyMC project also have begun the 2022 Google Summer of Code (GSOC) program and the following GSOC folks joined:
Connor Hassan (Australia)
Purna Chandra Mansingh (India)
Danh Phan (Australia)
Larry Dong (Canada)
A number of contributors joined from the community:
Fernando Irarrázaval
Ivan Finaev
percevalve
Rob Zinkov (Germany)
There were lots of people throughout the week, and it is likely we are forgetting some folks. If we forgot you, let us know!

Day 2 of PyMC v4.0 Developer Hackathon, June 2, 2022; Photo credit: Thomas Wiecki; (from left to right): Alex Andorra, Christian Luhmann, Connor Hassan , Maxime Kochurov, Oriol Abril Pla, Purna Chandra Mansingh, Ricardo Vieira, Rob Zinkov, Thomas Wiecki#
Highlight Achievements During the Sprint#
Below are a list of highlights that the PyMC development team is excited to share.
New PyMC website: pymc.io#
The new website at https://t.co/tbR03EYZl5 is indeed a major improvement. The docs team, lead by @OriolAbril completely overhauled it. It even has an interactive demo of PyMC running in the browser with @pyodide 🤯. https://t.co/yDkLfPmo9C
— Thomas Wiecki (@twiecki) June 6, 2022
Bambi: Hierarchical Generalized Linear Models#
Bambi, the high-level interface to build hierarchical generalized linear models with a single line of code is now also compatible with 4.0 https://t.co/J6qzVFrsHv. Some call it the brms of PyMC.
— PyMC Developers (@pymc_devs) June 6, 2022
Labeled Dimensions and Coordinates#
Oriol Abril Pla has an article with more details: PyMC 4.0 with Labeled Coords and Dims.
PyMC 4.0 was just released! 🚀🎉
— Oriol Abril Pla (@OriolAbril) June 7, 2022
To complement the release, here is a blog post on using labeled dimensions and coordinates in PyMC 4.0, one of the features I enjoy the mosthttps://t.co/wd5Ow4sBP9 https://t.co/ZFPo4r1q7A
Hierarchical Modeling with LKJ Prior#
Tomas Capretto wrote an article on Hierarchical modeling with the LKJ (Lewandowski-Kurowicka-Joe) prior in PyMC
#PyMC version 4 is out and we're all excited about the massive improvements. In this new blogpost, I explore how to use `LKJCholeskyCov` and `LKJCorr` to place a prior on a correlation matrix in hierarchical modeling. Want to have a look?! https://t.co/08LULKa5XL
— Tomás Capretto (@CaprettoTomas) June 13, 2022
PyMC v4.0 & Aesara#
In this PyMC and Aesara notebook, Ricardo Vieira and Juan Orduz give an introduction of how PyMC models translate to Aesara graphs.
If you want to learn more about how #PyMC 4.0 and Aesara work together, check out this new in-depth tutorial by @RicardoV944 and @juanitorduz https://t.co/7Wk4UQkqXC @AesaraDevs @pymc_devs pic.twitter.com/Ro9RsGaHrf
— Thomas Wiecki (@twiecki) June 7, 2022
Plot Conditional Adjusted Prediction#
The new version also brings Plot Conditional Adjusted Predictions, if you are interested in contributing we are still lacking an example of this feature in our example gallery
The new version also brings Plot Conditional Adjusted Predictions, if you are interested in contributing we are still lacking an example of this feature in our gallery. https://t.co/mXB8aXV6yN https://t.co/w9TmZnvYQd pic.twitter.com/kOn5WQx0Zk
— Osvaldo Martin (@aloctavodia) June 6, 2022
Summary#
Get started with v 4.0
by installing PyMC via `conda`. Read the full PyMC 4.0 Release Announcement and PyMC v4.0 Release Notes.
Connect with PyMC#
Connect with PyMC via:
Website: pymc.io
Discourse: discourse.pymc.io
YouTube: PyMCDevelopers
Star GH repo: pymc-devs/pymc
Join Meetup: pymc-online-meetup
Twitter: @pymc_devs
LinkedIn: @pymc