Skip to content

Fix JAX warnings in tests #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 147 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
f38d0f6
prebuilds setup (#68)
ferrine Sep 7, 2022
6494930
refactor imports (#69)
ferrine Sep 7, 2022
b5cf8ad
fix unitary case in prior from trace (#67)
ferrine Sep 8, 2022
75aa37b
Add wrapper for running blackjax pathfinder (#72)
twiecki Sep 9, 2022
9924d92
Revert "Add wrapper for running blackjax pathfinder (#72)" (#78)
twiecki Sep 10, 2022
14e2406
remove bart (#75)
aloctavodia Sep 10, 2022
549b7fb
Added model_builder as directed in PR #6023 on pymc (#64)
5hv5hvnk Sep 13, 2022
f560e1e
Add wrapper for running blackjax pathfinder.
twiecki Sep 7, 2022
78b7f2f
Add Genextreme distribution (#84)
ccaprani Sep 28, 2022
0480f95
Implementing linear conjugate gradients (#62)
kunalghosh Oct 1, 2022
e64d1f2
Add license to file header (#86)
junpenglao Oct 5, 2022
77a3f8f
added predict_posterior (#90)
5hv5hvnk Oct 22, 2022
307913d
Initial commit of pivoted Cholesky algorithm from GPyTorch (#63)
kunalghosh Oct 24, 2022
0eeaed9
Remove python-specific conda environments
ricardoV94 Sep 14, 2022
c3634e1
Update PyMC dependency
ricardoV94 Nov 15, 2022
9cb34d1
Make xhistogram dependency optional (#92)
ricardoV94 Nov 21, 2022
8ac1833
Update PyMC dependency
ricardoV94 Nov 15, 2022
b3683d4
Add pytest slow mark
ricardoV94 Nov 22, 2022
5a01d4f
Automatic logp marginalization of finite discrete variables
ricardoV94 Nov 14, 2022
e96880f
Fix package name in setup.py
ricardoV94 Dec 15, 2022
61a63b2
Update PyMC dependency
ricardoV94 Dec 15, 2022
6575208
Update warning for transformed variables that depend on marginalized …
ricardoV94 Dec 15, 2022
e8b1ad7
Update index.rst (#106)
ferrine Feb 7, 2023
712bb7a
Updated load method in ModelBuilder (#104)
5hv5hvnk Feb 15, 2023
2d9e514
Bump version to 0.0.2.
twiecki Feb 16, 2023
6f67dec
changed id of model_builder to property, added type hinting (#110)
michaelraczycki Feb 17, 2023
84aa791
Model builder tests (#114)
michaelraczycki Mar 5, 2023
d811561
storing model_config and sampler_config changed to json string
michaelraczycki Mar 28, 2023
66df0dc
Rename environments
ricardoV94 Mar 30, 2023
0c8be0a
Test on last release of PyMC instead of main
ricardoV94 Mar 29, 2023
2c30c52
Temporarily install pymc via pip
ricardoV94 Mar 30, 2023
5259105
Fix isinstance check in `test_predict`
ricardoV94 Mar 30, 2023
b1763c7
Update API reference listings (#105)
ricardoV94 Mar 30, 2023
2c22662
Seed flaky test
ricardoV94 Mar 30, 2023
f4962be
Fix PyMC API change
ricardoV94 Mar 29, 2023
831a894
Model Builder refactoring (#131)
michaelraczycki Mar 31, 2023
f554df1
release preparation (#134)
michaelraczycki Apr 3, 2023
b730449
Remove HSGP as it became a part of PyMC (#136)
ferrine Apr 7, 2023
5f1c2bb
Make pytest fail on uncaught warnings (#133)
michaelraczycki Apr 12, 2023
e38da06
Add `build_model` abstractmethod to `ModelBuilder` (#142)
michaelraczycki Apr 19, 2023
b3be15f
Return posterior predictive samples from all chains in `ModelBuilder`…
mbjoseph Apr 20, 2023
03ad8dd
removed unused *args from fit, added named args to sampler_config
michaelraczycki Apr 20, 2023
0a0f544
docstrings update in model_builder.py (#148)
michaelraczycki Apr 20, 2023
666ac8c
Add DiscreteMarkovChain distribution (#100)
jessegrabowski Apr 20, 2023
35f8919
updating api_reference.rst (#150)
michaelraczycki Apr 20, 2023
24947a0
Automate pypi release (#135)
michaelraczycki Apr 24, 2023
4afdb09
fixed test failing due to infinite precision requirement (#153)
michaelraczycki Apr 27, 2023
773266b
Tweak README.md
ricardoV94 Mar 7, 2023
53e153e
adding codecov badge
michaelraczycki Apr 28, 2023
74dccd8
Skip GenExtreme logcdf test on float32 and Windows
ricardoV94 Apr 28, 2023
1fcb0d1
Fix unused expression in test_pathfinder
ricardoV94 Apr 28, 2023
78b9cc9
doctest setup with solved merge conflicts
michaelraczycki Apr 28, 2023
ed9f54c
doctest setup with solved merge conflicts
michaelraczycki Apr 28, 2023
2e8505a
Add GeneralizedPoisson distribution
ricardoV94 Apr 17, 2023
274aff0
replacing versioneer (#164)
michaelraczycki May 9, 2023
03dc6d4
PoC for model_builder to work with scikit-learn. (#161)
pdb5627 May 10, 2023
56d8406
fixing broken docs reference (#166)
michaelraczycki May 11, 2023
2ef3bb3
Implement utility to convert Model to and from FunctionGraph
ricardoV94 Feb 20, 2023
bb2359b
Return memo dictionary in `fgraph_from_model`
ricardoV94 May 17, 2023
f9d1c55
add default to argument (#93)
ferrine May 24, 2023
b3f6581
Add r2m2d2cp prior (#137)
ferrine May 25, 2023
573e5bc
Merging BayesianEstimator into ModelBuilder (#165)
michaelraczycki May 26, 2023
7186383
version change
michaelraczycki May 26, 2023
e535107
Version change (#172)
michaelraczycki May 29, 2023
b8a9fec
replacing slicing in git actions with python slicing (#173)
michaelraczycki May 29, 2023
3762443
new version to release the pypi release CI/CD (#175)
michaelraczycki May 29, 2023
2065bfa
adjusting test pypi publish (#176)
michaelraczycki May 29, 2023
ae7b80f
pre-release change (#177)
michaelraczycki May 29, 2023
7ab18b7
Fix docstrings code-block
ricardoV94 May 30, 2023
462b1a6
Fix type-hint
ricardoV94 May 30, 2023
0ef82df
Bump PyMC dependency
ricardoV94 May 22, 2023
871dfb3
Pass kwargs through to pymc sample calls
pdb5627 Jun 4, 2023
db9cf6c
Make fgraph Deterministic conversion logic more robust
ricardoV94 Jun 2, 2023
96f9b81
Allow inlining of Deterministics and Data in fgraph IR
ricardoV94 Jun 2, 2023
683ed4c
Implement observe and do model transformations
ricardoV94 May 17, 2023
d640232
Add option to prune variables after do intervention
ricardoV94 Jun 2, 2023
0575aff
Bump version for release
ricardoV94 Jun 5, 2023
c3fd654
Update version.txt
ricardoV94 Jun 5, 2023
bb68399
model_builder adaptations for full sklearn compatibility
michaelraczycki Jun 6, 2023
7bc8f04
replacing standard_scaler_df with sklearn_config
michaelraczycki Jun 7, 2023
b2a9f3f
adapting linearmodel and it's tests to use sklearn-only approach
michaelraczycki Jun 7, 2023
a7c4d79
making y optional, adding fitted model fixture to make tests more eff…
michaelraczycki Jun 8, 2023
baa9363
version changed to 0.0.6
michaelraczycki Jun 8, 2023
84c38b2
Update to pymc 5.5.0 (#191)
michaelraczycki Jun 10, 2023
af900ba
version bump (#193)
michaelraczycki Jun 10, 2023
4ea3151
Added seeding to draws in tests (#195)
pdb5627 Jun 12, 2023
2da3c81
Refactor modelbuilder fit (#198)
pdb5627 Jun 13, 2023
356232c
Implement limit case of R2D2M2CP for P (#182)
ferrine Jun 26, 2023
dd04eff
Revert "Refactor modelbuilder fit (#198)" (#200)
michaelraczycki Jul 2, 2023
bcce213
rename missing to unobserved in test
ferrine Jul 4, 2023
ff98f06
bump versions in requirements
ferrine Jul 4, 2023
dd3c44d
Fix math in sigma attachment (#207)
ferrine Jul 5, 2023
5f7b185
ModelBuilder.load versatility improvements (#210)
michaelraczycki Jul 11, 2023
5e447e8
arviz group warning suppressed (#214)
michaelraczycki Jul 12, 2023
430c3c8
version bump (#215)
michaelraczycki Jul 12, 2023
db3172e
Fix bug in model_fgraph where RNGs weren't being copied as advertised
ricardoV94 Jul 24, 2023
4051624
Copy model-related shared variables in model_fgraph
ricardoV94 Jul 24, 2023
cb6b864
fixing second loading issue (#220)
michaelraczycki Jul 27, 2023
8efc137
adding test for model_config_formatter helper function (#222)
michaelraczycki Jul 28, 2023
644397b
version bump for release (#223)
michaelraczycki Jul 28, 2023
7bcb2bf
Ignore constant shape dependencies in MarginalModel
ricardoV94 Aug 3, 2023
9a3e474
Implement utility to change value variable transforms
ricardoV94 Jul 17, 2023
9999e0f
Use Mapping instead of Dict in type hints
ricardoV94 Aug 11, 2023
110dfd9
Fixing docstring (#228)
michaelraczycki Aug 16, 2023
15c88e8
Allow do interventions to reference intervened variable
ricardoV94 Jul 24, 2023
67a9695
Merge statespace module from http://github.com/jessegrabowski/pymc_st…
jessegrabowski Aug 18, 2023
8eb04c9
Bump version.txt
ricardoV94 Aug 21, 2023
9e374b7
renamed to _generate_and_preprocess_model_data (#232)
michaelraczycki Aug 21, 2023
fc6e7ba
version bump (#233)
michaelraczycki Aug 22, 2023
a9e0be5
test_fit_no_y to use tune=1, draws=1 (#234)
pdb5627 Aug 23, 2023
4500708
Change default_*_config from @property to @staticmethod (#235)
pdb5627 Sep 1, 2023
028664d
Bump minimum PyMC dependency
ricardoV94 Sep 14, 2023
d7f5ab7
Remove fgraph functionality that graduated to PyMC
ricardoV94 Sep 14, 2023
2f77810
Bump version 0.0.11 -> 0.0.12
jessegrabowski Sep 16, 2023
3444ede
Temporarily ignore `DepreciationWarning` raised by `test_pathfinder`
jessegrabowski Sep 16, 2023
e163a6f
Fix CI errors in statspace test suite (#251)
jessegrabowski Oct 8, 2023
b08610c
Fix DiscreteMarkovChain logp
ricardoV94 Oct 27, 2023
ebba64e
Fix pathfinder wrapper
ricardoV94 Sep 11, 2023
4832992
Implement Chi distribution helper
tvwenger Sep 13, 2023
24eb34e
Remove floatX="float32" tests
ricardoV94 Nov 1, 2023
dd2a060
Bump version
ricardoV94 Nov 1, 2023
40e28e8
Implement Skellam distribution (#260)
williambdean Nov 6, 2023
e8ce688
Fix pymc module usage in KL
HasnainRaz Nov 10, 2023
b521e64
Implement BetaNegativeBinomial distribution (#258)
williambdean Nov 10, 2023
6d8f569
Implement Maxwell Distribution (#261)
williambdean Nov 11, 2023
a362ff0
Set data when building Linearmodel (#249)
pdb5627 Nov 13, 2023
c93260f
Update r2d2m2cp.py (#245)
ferrine Nov 22, 2023
5fc0463
Blackjax SMC from pymc models (#267)
ciguaran Nov 22, 2023
8046695
Add `@as_model` decorator (#268)
theorashid Nov 22, 2023
79c4dc1
Bump version to 0.0.14 (#270)
ricardoV94 Nov 23, 2023
150fb0f
Bump PyMC minimum version requirement
HasnainRaz Nov 24, 2023
00d7a2b
Bump version to 0.0.15
ricardoV94 Nov 27, 2023
f1ece1c
Fix testing and remove warnings for r2d2m2cp (#284)
ferrine Dec 15, 2023
c00c368
Variationally Informed Parameterization (#276)
ferrine Dec 15, 2023
430c344
Pass coords argument into model factory (#282)
zaxtax Dec 15, 2023
656b800
Bugfixes for `statespace/models/structural.py` (#287)
jessegrabowski Dec 18, 2023
99f30aa
Fix initial state size in CycleComponent (#288)
jessegrabowski Dec 21, 2023
4f75687
Implement utility to recover marginalized variables from `MarginalMod…
zaxtax Dec 25, 2023
6c078e8
Add reference for VIP
ferrine Dec 27, 2023
953cb7f
Remove use of treedict, addresses #291
zaxtax Jan 1, 2024
f26a6c9
Update version.txt
ricardoV94 Jan 3, 2024
8dff969
Use model variables named "sigma" as standard deviations rather than …
jessegrabowski Jan 7, 2024
c5ad76a
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 22, 2024
1c40824
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 22, 2024
ba10a00
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jan 29, 2024
16ce329
Fix MarginalModel with Data containers
ricardoV94 Feb 9, 2024
0623e58
Call `pm.sample` with `chains=1` to avoid JAX warning
jessegrabowski Feb 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pymc_experimental/_version.py export-subst
24 changes: 24 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file contains configuration for the automatic generation of release notes in GitHub.
# It's not perfect, but it makes it a little less laborious to write informative release notes.
# Also see https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes
changelog:
exclude:
labels:
- no releasenotes
categories:
- title: Major Changes 🛠
labels:
- major
- title: New Features 🎉
labels:
- enhancements
- feature request
- title: Bugfixes 🪲
labels:
- bug
- title: Documentation 📖
labels:
- docs
- title: Maintenance 🔧
labels:
- "*"
87 changes: 87 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: PyPI
on:
pull_request:
branches: [main]
push:
branches: [main]
release:
types: [published]

jobs:
build:
name: build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build the sdist and the wheel
run: |
pip install build
python3 -m build
- name: Check the sdist installs and imports
run: |
mkdir -p test-sdist
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install numpy
venv-sdist/bin/python -m pip install ../dist/pymc-experimental*.tar.gz
echo "Checking import and version number (on release)"
venv-sdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}'[1:] if '${{ github.ref_type }}' == 'tag' else True; print(pmx.__version__)"
cd ..
- name: Check the bdist installs and imports
run: |
mkdir -p test-bdist
cd test-bdist
python -m venv venv-bdist
venv-bdist/bin/python -m pip install ../dist/pymc_experimental*.whl
echo "Checking import and version number (on release)"
venv-bdist/bin/python -c "import pymc_experimental as pmx; assert pmx.__version__ == '${{ github.ref_name }}'[1:] if '${{ github.ref_type }}' == 'tag' else pmx.__version__; print(pmx.__version__)"
cd ..
- uses: actions/upload-artifact@v3
with:
name: artifact
path: dist/*
test:
name: upload to test PyPI
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Test pip install from test.pypi
run: |
python -m venv venv-test-pypi
venv-test-pypi/bin/python -m pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pymc-experimental
echo "Checking import and version number"
venv-test-pypi/bin/python -c "import pymc_experimental; assert pymc_experimental.__version__ == '${{ github.ref_name }}'[1:]"

publish:
name: upload release to PyPI
needs: [build, test]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
54 changes: 30 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
ubuntu:
strategy:
matrix:
os: [ubuntu-18.04]
floatx: [float32, float64]
os: [ubuntu-latest]
python-version: ["3.9"]
test-subset:
- pymc_experimental/tests
fail-fast: false
runs-on: ${{ matrix.os }}
env:
TEST_SUBSET: ${{ matrix.test-subset }}
AESARA_FLAGS: floatX=${{ matrix.floatx }},gcc__cxxflags='-march=native'
PYTENSOR_FLAGS: gcc__cxxflags='-march=native'
defaults:
run:
shell: bash -l {0}
Expand All @@ -32,12 +34,12 @@ jobs:
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if environment-test-py38.yml has not changed
# Increase this value to reset cache if environment-test.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda-envs/environment-test-py38.yml') }}
key: ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda-envs/environment-test.yml') }}
- name: Cache multiple paths
uses: actions/cache@v2
env:
Expand All @@ -55,36 +57,39 @@ jobs:
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
activate-environment: pymc-test-py38
activate-environment: pymc-experimental-test
channel-priority: strict
environment-file: conda-envs/environment-test-py38.yml
environment-file: conda-envs/environment-test.yml
python-version: ${{matrix.python-version}}
use-mamba: true
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Install-pymc
- name: Install pymc-experimental
run: |
conda activate pymc-test-py38
conda activate pymc-experimental-test
pip install -e .
python --version
- name: Run tests
run: |
conda activate pymc-test-py38
conda activate pymc-experimental-test
python -m pytest -vv --cov=pymc_experimental --cov-append --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
env_vars: TEST_SUBSET
name: ${{ matrix.os }} ${{ matrix.floatx }}
name: ${{ matrix.os }}
fail_ci_if_error: false
windows:
strategy:
matrix:
os: [windows-latest]
floatx: [float32, float64]
python-version: ["3.11"]
test-subset:
- pymc_experimental/tests
fail-fast: false
runs-on: ${{ matrix.os }}
env:
TEST_SUBSET: ${{ matrix.test-subset }}
AESARA_FLAGS: floatX=${{ matrix.floatx }},gcc__cxxflags='-march=core2'
PYTENSOR_FLAGS: gcc__cxxflags='-march=core2'
defaults:
run:
shell: cmd
Expand All @@ -93,12 +98,12 @@ jobs:
- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if conda-envs/environment-test-py37.yml has not changed
# Increase this value to reset cache if conda-envs/windows-environment-test.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda-envs/windows-environment-test-py37.yml') }}
key: ${{ runner.os }}-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('conda-envs/windows-environment-test.yml') }}
- name: Cache multiple paths
uses: actions/cache@v2
env:
Expand All @@ -116,25 +121,26 @@ jobs:
miniforge-variant: Mambaforge
miniforge-version: latest
mamba-version: "*"
activate-environment: pymc-test-py37
activate-environment: pymc-experimental-test
channel-priority: strict
environment-file: conda-envs/windows-environment-test-py37.yml
environment-file: conda-envs/windows-environment-test.yml
python-version: ${{matrix.python-version}}
use-mamba: true
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
- name: Install-pymc
- name: Install pymc-experimental
run: |
conda activate pymc-test-py37
conda activate pymc-experimental-test
pip install -e .
python --version
- name: Run tests
# This job uses a cmd shell, therefore the environment variable syntax is different!
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
run: >-
conda activate pymc-test-py37 &&
python -m pytest -vv --cov=pymc_experimental --doctest-modules pymc_experimental --cov-append --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%
conda activate pymc-experimental-test &&
python -m pytest -vv --cov=pymc_experimental --cov-append --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
env_vars: TEST_SUBSET
name: ${{ matrix.os }} ${{ matrix.floatx }}
name: ${{ matrix.os }}
fail_ci_if_error: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ pytestdebug.log

# Codespaces
pythonenv*
env/
8 changes: 4 additions & 4 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ tasks:
- name: initialize
init: |
mkdir -p .vscode
echo '{"python.defaultInterpreterPath": "/home/gitpod/.conda/envs/pymc-test-py39/bin/python"}' > .vscode/settings.json
echo '{"python.defaultInterpreterPath": "/workspace/pymc-experimental/env/bin/python"}' > .vscode/settings.json
conda init bash && source ~/.bashrc
conda env update -f conda-envs/environment-test-py39.yml
conda activate pymc-test-py39
conda env update -f conda-envs/environment-test.yml -p env
conda activate /workspace/pymc-experimental/env
pip install -r requirements-dev.txt
pip install -e .
command: |
conda init bash && echo "conda activate pymc-test-py39" >> ~/.bashrc && source ~/.bashrc && conda activate pymc-test-py39
conda init bash && echo "conda activate /workspace/pymc-experimental/env" >> ~/.bashrc && source ~/.bashrc

vscode:
extensions:
Expand Down
13 changes: 7 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: check-toml
Expand All @@ -11,30 +11,31 @@ repos:
args: [--branch, main]
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
name: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.1
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 24.1.1
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/PyCQA/pylint
rev: v2.14.5
rev: v3.0.3
hooks:
- id: pylint
args: [--rcfile=.pylintrc]
files: ^pymc_experimental/
- repo: https://github.com/MarcoGorelli/madforhooks
rev: 0.3.0
rev: 0.4.1
hooks:
- id: no-print-statements
exclude: _version.py
files: ^pymc_experimental/
- repo: local
hooks:
Expand Down
4 changes: 4 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ python:
- requirements: requirements.txt
- method: pip
path: .

sphinx:
fail_on_warning: false
configuration: docs/conf.py
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include requirements*.txt
include *.md *.rst
include LICENSE
include pymc_experimental/version.txt
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
alt="Contribute with Gitpod"
/>
</a>
<img
src="https://codecov.io/gh/pymc-devs/pymc-experimental/branch/main/graph/badge.svg"
alt="Codecov Badge"
/>

As PyMC continues to mature and expand its functionality to accommodate more domains of application, we increasingly see cutting-edge methodologies, highly specialized statistical distributions, and complex models appear.
While this adds to the functionality and relevance of the project, it can also introduce instability and impose a burden on testing and quality control.
Expand Down Expand Up @@ -54,7 +58,5 @@ For example, `pymc-experimental` may just include methods that are not fully dev
This project is still young and many things have not been answered or implemented.
Please get involved!

* What are guidlines for organizing submodules?
* What are guidelines for organizing submodules?
* Proposal: No default imports of WIP/unstable submodules. By importing manually we can avoid breaking the package if a submodule breaks, for example because of an updated dependency.
* How can we minimize the additional burden of additional project repositories?
* ToDo: Setting up a basic CI pipeline
13 changes: 0 additions & 13 deletions conda-envs/environment-test-py38.yml

This file was deleted.

13 changes: 0 additions & 13 deletions conda-envs/environment-test-py39.yml

This file was deleted.

16 changes: 16 additions & 0 deletions conda-envs/environment-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pymc-experimental-test
channels:
- conda-forge
- defaults
dependencies:
- pip

- pytest-cov>=2.5
- pytest>=3.0
- dask
- xhistogram
- statsmodels
- pip:
- pymc>=5.10.0 # CI was failing to resolve
- blackjax
- scikit-learn
Loading