# Posts by Thomas Wiecki

## Faster Sampling with JAX and Numba

- 11 July 2023

PyMC can compile its models to various execution backends through PyTensor, including:

## Using ModelBuilder class for deploying PyMC models

- 22 February 2023

Many users face difficulty in deploying their PyMC models to production because deploying/saving/loading a user-created model is not well standardized. One of the reasons behind this is there is no direct way to save or load a model in PyMC like scikit-learn or TensorFlow. The new `ModelBuilder`

class is aimed to improve this workflow by providing a scikit-learn inspired API to wrap your PyMC models.

## Pathfinder Variational Inference

- 05 February 2023

Pathfinder [Zhang *et al.*, 2021] is a variational inference algorithm that produces samples from the posterior of a Bayesian model. It compares favorably to the widely used ADVI algorithm. On large problems, it should scale better than most MCMC algorithms, including dynamic HMC (i.e. NUTS), at the cost of a more biased estimate of the posterior. For details on the algorithm, see the arxiv preprint.

## Rolling Regression

- 28 January 2023

Pairs trading is a famous technique in algorithmic trading that plays two stocks against each other.

## GLM: Robust Linear Regression

- 10 January 2023

Duplicate implicit target name: “glm: robust linear regression”.

## How to debug a model

- 02 August 2022

There are various levels on which to debug a model. One of the simplest is to just print out the values that different variables are taking on.

## Variational Inference: Bayesian Neural Networks

- 30 May 2022

**Probabilistic Programming**, **Deep Learning** and “**Big Data**” are among the biggest topics in machine learning. Inside of PP, a lot of innovation is focused on making things scale using **Variational Inference**. In this example, I will show how to use **Variational Inference** in PyMC to fit a simple Bayesian Neural Network. I will also discuss how bridging Probabilistic Programming and Deep Learning can open up very interesting avenues to explore in future research.

## Lasso regression with block updating

- 10 February 2022

Sometimes, it is very useful to update a set of parameters together. For example, variables that are highly correlated are often good to update together. In PyMC block updating is simple. This will be demonstrated using the parameter `step`

of `pymc.sample`

.

## Bayesian Estimation Supersedes the T-Test

- 07 January 2022

Non-consecutive header level increase; H1 to H3 [myst.header]

## GLM: Robust Regression using Custom Likelihood for Outlier Classification

- 17 November 2021

Using PyMC for Robust Regression with Outlier Detection using the Hogg 2010 Signal vs Noise method.