Skip to main content

PyMC3 Models

Custom PyMC3 models built on top of the scikit-learn API. Check out the docs.

Features

  • Reusable PyMC3 models including LinearRegression and HierarchicalLogisticRegression
  • A base class, BayesianModel, for building your own PyMC3 models

Installation

The latest release of PyMC3 Models can be installed from PyPI using pip:

pip install pymc3_models

The current development branch of PyMC3 Models can be installed from GitHub, also using pip:

pip install git+https://github.com/parsing-science/pymc3_models.git

To run the package locally (in a virtual environment):

git clone https://github.com/parsing-science/pymc3_models.git
cd pymc3_models
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Usage

Since PyMC3 Models is built on top of scikit-learn, you can use the same methods as with a scikit-learn model.

from pymc3_models import LinearRegression

LR = LinearRegression()
LR.fit(X, Y)
LR.predict(X)
LR.score(X, Y)

Contribute

For more info, see CONTRIBUTING.

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See CODE_OF_CONDUCT.

Acknowledgments

This library is built on top of PyMC3 and scikit-learn.

License

Apache License, Version 2.0

Metadata

Release files for pymc3-models 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymc3-models 2.1.0
File Size Uploaded
pymc3_models-2.1.0.tar.gz 16.0 kB Details

Release files / pymc3_models-2.1.0.tar.gz

Download URL pymc3_models-2.1.0.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4ca40136d8c1fa26b7c7ff57856e76e78df52fe05c58ad2f49b88a4883235784
BLAKE2b-256 checksum
How to use checksums
c161e616650cd4647934af858b253a46bd625b3937c65d82b9b80b2fdb4bd08f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3

Release history Release notifications | RSS feed

This release

2.1.0 This release

1 release file

2.0.0

1 release file

1.3.0

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.1.3

1 release file

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page