·pymc-testing

Testing PyMC models with pytest. Use when writing unit tests for Bayesian models, setting up test fixtures, mocking MCMC sampling, or testing model structure. Covers pymc.testing.mock_sample, pytest fixtures, and the distinction between fast structure-only tests (mocking) and slow posterior inference tests. Triggers on: testing PyMC, pytest, unit tests for models, mock sampling, test fixtures, CI/CD for Bayesian models.

18Installs·4Trend·@pymc-labs

Installation

$npx skills add https://github.com/pymc-labs/python-analytics-skills --skill pymc-testing

How to Install pymc-testing

Quickly install pymc-testing AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/pymc-labs/python-analytics-skills --skill pymc-testing
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: pymc-labs/python-analytics-skills.

SKILL.md

View raw

PyMC provides testing utilities to speed up test suites by mocking MCMC sampling with prior predictive sampling. This is useful for checking model structure without running expensive inference.

| Speed | Fast (seconds) | Slow (minutes) | | Use case | Model structure, downstream code | Posterior values, convergence | | Output | prior, priorpredictive | Full posterior, samplestats, warmup groups | | Divergences | Mocked (configurable) | Real diagnostics |

Use mocking when: Testing model specification, CI/CD pipelines, plotting code, API integration, serialization.

Testing PyMC models with pytest. Use when writing unit tests for Bayesian models, setting up test fixtures, mocking MCMC sampling, or testing model structure. Covers pymc.testing.mock_sample, pytest fixtures, and the distinction between fast structure-only tests (mocking) and slow posterior inference tests. Triggers on: testing PyMC, pytest, unit tests for models, mock sampling, test fixtures, CI/CD for Bayesian models. Source: pymc-labs/python-analytics-skills.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/pymc-labs/python-analytics-skills --skill pymc-testing
Category
{}Data Analysis
Verified
First Seen
2026-03-09
Updated
2026-03-11

Browse more skills from pymc-labs/python-analytics-skills

Quick answers

What is pymc-testing?

Testing PyMC models with pytest. Use when writing unit tests for Bayesian models, setting up test fixtures, mocking MCMC sampling, or testing model structure. Covers pymc.testing.mock_sample, pytest fixtures, and the distinction between fast structure-only tests (mocking) and slow posterior inference tests. Triggers on: testing PyMC, pytest, unit tests for models, mock sampling, test fixtures, CI/CD for Bayesian models. Source: pymc-labs/python-analytics-skills.

How do I install pymc-testing?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/pymc-labs/python-analytics-skills --skill pymc-testing Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/pymc-labs/python-analytics-skills

Details

Category
{}Data Analysis
Source
skills.sh
First Seen
2026-03-09