Skip to main content

Custom PyMC3 models built on top of the scikit-learn API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymc3_models-1.3.0.tar.gz (11.6 kB view details)

Uploaded Source

File details

Details for the file pymc3_models-1.3.0.tar.gz.

File metadata

  • Download URL: pymc3_models-1.3.0.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pymc3_models-1.3.0.tar.gz
Algorithm Hash digest
SHA256 ce0522e5208128b12d9951253320a3fe248683cd945188e578606801ad745b9a
MD5 69bd5578b680bedc02436a565d3e6682
BLAKE2b-256 9dce7ab27458259d96ef47ccc3cd7a283aab38d480f0780b8135c8d6a59b2b5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page