-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
116 changed files
with
19,286 additions
and
8,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: release-pipeline | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
release-job: | ||
runs-on: ubuntu-latest | ||
env: | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
# TODO: ideally, this pipeline should run parallelized tests in upstream jobs.. | ||
#- name: Install test tooling | ||
# run: | | ||
# pip install pytest pytest-cov nose nose-parameterized | ||
# pip install -r requirements.txt | ||
#- name: Run tests | ||
# run: | | ||
# pytest --cov=./pymc3 --cov-report term-missing pymc3/ | ||
- name: Install release tooling | ||
run: | | ||
pip install twine wheel | ||
- name: Build package | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
- name: Check version number match | ||
run: | | ||
echo "GITHUB_REF: ${GITHUB_REF}" | ||
# The GITHUB_REF should be something like "refs/tags/v3.x.x" | ||
# Make sure the package version is the same as the tag | ||
grep -Rq "^Version: ${GITHUB_REF:11}$" pymc3.egg-info/PKG-INFO | ||
- name: Publish to PyPI | ||
run: | | ||
twine check dist/* | ||
twine upload --repository pypi --username __token__ --password ${PYPI_TOKEN} dist/* | ||
test-install-job: | ||
needs: release-job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Give PyPI a chance to update the index | ||
run: sleep 240 | ||
- name: Install from PyPI | ||
run: | | ||
pip install pymc3==${GITHUB_REF:11} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
***** | ||
Stats | ||
***** | ||
Statistics and diagnostics are delegated to the | ||
`ArviZ <https://arviz-devs.github.io/arviz/index.html>`_. | ||
library, a general purpose library for | ||
"exploratory analysis of Bayesian models." | ||
For statistics and diagnostics, ``pymc3.<function>`` are now aliases | ||
for ArviZ functions. Thus, the links below will redirect you to | ||
ArviZ docs: | ||
|
||
.. currentmodule:: pymc3.stats | ||
|
||
.. automodule:: pymc3.stats | ||
:members: | ||
|
||
- :func:`pymc3.bfmi <arviz:arviz.bfmi>` | ||
- :func:`pymc3.compare <arviz:arviz.compare>` | ||
- :func:`pymc3.ess <arviz:arviz.ess>` | ||
- :data:`pymc3.geweke <arviz:arviz.geweke>` | ||
- :func:`pymc3.hpd <arviz:arviz.hpd>` | ||
- :func:`pymc3.loo <arviz:arviz.loo>` | ||
- :func:`pymc3.mcse <arviz:arviz.mcse>` | ||
- :func:`pymc3.r2_score <arviz:arviz.r2_score>` | ||
- :func:`pymc3.rhat <arviz:arviz.rhat>` | ||
- :func:`pymc3.summary <arviz:arviz.summary>` | ||
- :func:`pymc3.waic <arviz:arviz.waic>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.