Skip to content
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

Update upstream #1

Merged
merged 340 commits into from
Oct 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
340 commits
Select commit Hold shift + click to select a range
a74c03f
Convert random variables to value variables (#7284)
tomicapretto Apr 28, 2024
29fd732
Add test to compare draws when `var_names` is used in `pm.sample()` (…
tomicapretto Apr 28, 2024
84d15c8
Broadcast shapes of alpha and beta in Weibull rng (#7288)
tomicapretto Apr 28, 2024
bce7116
Remove redundant pre-commit job (#7285)
juanitorduz Apr 28, 2024
04b6881
Bump actions/checkout from 4.1.3 to 4.1.4
dependabot[bot] Apr 29, 2024
0ad689c
Allow freezing only subset of data and dims
ricardoV94 Apr 12, 2024
606d4ff
Skewed Student-T distribution (#7252)
fonnesbeck May 4, 2024
881030a
Suggest `var_names` when using deprecated API for partial traces (#7289)
lancechua May 5, 2024
01b0219
Align model dim_lengths with cloned variables in `model_from_fgraph`
ricardoV94 May 1, 2024
ba60b79
Add option to avoid cloning fgraph in `model_from_fgraph`
ricardoV94 May 1, 2024
3a884dd
Distinguish better observed from constant data
ricardoV94 Apr 17, 2024
255a0c8
Fix flaky `test_skewstudentt_logp`
michaelosthege May 7, 2024
e42d35a
Use correct dtypes for invalid parameters test
michaelosthege May 7, 2024
82eae9a
Allow customizing style of model_graph nodes (#7302)
wd60622 May 8, 2024
3729614
Add warning about future change in hessian sign
aseyboldt Nov 18, 2022
43b40de
Allow mutable shape in PartialObservedRVs
ricardoV94 May 14, 2024
966a78c
Print installed packages in CI
ricardoV94 May 16, 2024
4e8e986
Pin blackjax
ricardoV94 May 16, 2024
3888d53
Fix bug in Truncated with identity inputs
ricardoV94 May 14, 2024
6e5f258
add sample_jax_nuts docstring
May 13, 2024
b59a9eb
update sample_jax_nuts docstring
May 13, 2024
4049c28
feat: Add blas_cores argument to pm.sample
aseyboldt May 15, 2024
df73f8e
Improve docs and add threadpoolctl to environments
aseyboldt May 16, 2024
a144c43
Add threadpoolctl to requirements-dev.txt
aseyboldt May 16, 2024
9c163dd
update pymc.sample docstring
treszkai May 16, 2024
c7dccea
Updated pymc.step_methods.slicer.Slice docstring
ksk-17090k1 May 16, 2024
0216473
Updated PyMC model to Model
ksk-17090k1 May 16, 2024
05b557f
Implement CustomProgress that does not output empty divs when disable…
tomicapretto May 18, 2024
fd11cf0
Use more numerically stable function in truncatenormal area computation
velochy May 9, 2024
eddf03b
Remove unused test models
ricardoV94 May 23, 2024
85a1e36
Get rid of uses of intX besides `convert_observed_data`
ricardoV94 May 22, 2024
7836447
Get rid of floatX_array
ricardoV94 May 22, 2024
931a5af
Refactor convert_observed data to simplify typing
lhelleckes May 6, 2024
b58fc7a
Bump actions/checkout from 4.1.4 to 4.1.6
dependabot[bot] May 20, 2024
372720e
Fix typing in multiple places
michaelosthege May 23, 2024
a197b19
Even more type fixes
michaelosthege May 23, 2024
43c5a8e
Remove duplicate call to `collect_default_updates`
ricardoV94 May 22, 2024
19be124
Reintroduce dummy intermediate variables in implementation of Truncat…
ricardoV94 May 22, 2024
914e10f
Add `smarttypeX` to apply intX or floatX as needed
michaelosthege May 24, 2024
cf78a4c
Split `convert_observed_data` and apply intX to int generators
michaelosthege May 24, 2024
427f31c
Deprecate generator data
michaelosthege May 24, 2024
e5c3030
Remove smart casting functions from docs and `__all__`
michaelosthege May 25, 2024
5a89ceb
Fix error in logcdf example
ricardoV94 May 27, 2024
cdcd36f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 27, 2024
e939ea0
Add _version.py to exclude list of linter
Armavica May 28, 2024
610fa1a
Remove deprecated ruff config option
Armavica May 28, 2024
fb7e1b1
Apply safe ruff fix
Armavica May 28, 2024
3b3be49
Apply unsafe f-string related ruff fixes
Armavica May 28, 2024
41b94e2
Remove a few more uses of .format
Armavica May 28, 2024
40fb76c
Update PyTensor dependency
ricardoV94 May 22, 2024
c495d8a
Add test for freeze_dims_and_data in JAX backend
ricardoV94 May 17, 2024
ca63876
Fix computation of L
AlexAndorra May 22, 2024
e1646b8
Make n_basis_vectors user accessible
AlexAndorra May 22, 2024
563ae5d
Remove pt option for calc_eigenvalues and np option for calc_eigenvec…
AlexAndorra May 22, 2024
f94d81e
Add option to pass coords to HSGP for beta coeffs
AlexAndorra May 22, 2024
fb3e1dd
Fix typo in parametrization kwarg
AlexAndorra May 22, 2024
3148d70
Add approx_hsgp_hyperparams function
AlexAndorra May 25, 2024
a5d57b8
Do X mean-centering under the hood in prior_linearized
AlexAndorra May 26, 2024
5b2ddd0
Mention n_basis_vectors in docstring
AlexAndorra May 26, 2024
bd903b9
Make sure prior method can take *args and **kwargs
AlexAndorra May 26, 2024
481d7b8
Fix tests HSGP
AlexAndorra May 26, 2024
98c3b82
Add Juan's comments
AlexAndorra May 27, 2024
3da91cc
Improve tests
AlexAndorra May 27, 2024
1ff3b8c
Use midpoint of X instead of mean
AlexAndorra May 28, 2024
24a9e54
Fix computation of S in approx_hsgp_hyperparams
AlexAndorra May 28, 2024
e4561c6
Fix tests HSGP
AlexAndorra May 28, 2024
7d15175
Improve docstring approx_params function
AlexAndorra May 30, 2024
508a134
Allow customizing truncation max_n_steps in Hurdle Mixtures
tjburch May 31, 2024
09ea8c8
Add refresh call to progress bar in apply_function_over_dataset (#7343)
fonnesbeck Jun 3, 2024
fc37dba
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 3, 2024
08f576c
Fix broken links
Armavica Jun 4, 2024
10cb019
OrderedLogistic and OrderedProbit no longer subclass Distribution
ricardoV94 Jun 5, 2024
b6c890e
OrderedLogistic and OrderedProbit no longer subclass Distribution
ricardoV94 Jun 5, 2024
9e0fe5d
fix docstrings, fix centering calculations
bwengals Jun 1, 2024
7bb5d05
Change Xs to X, because the s indicated scaled, which we dont have to…
bwengals Jun 1, 2024
3ae419b
fix test fails
bwengals Jun 1, 2024
5281d33
remove c, HSGPParams tuple, fix docstring
bwengals Jun 1, 2024
2a528f9
add a bit more detail to docstring of set_boundary
bwengals Jun 1, 2024
f2b03d8
Compute S with more generic formula for radius
AlexAndorra Jun 10, 2024
4f76576
Compute S with more generic formula for radius
AlexAndorra Jun 10, 2024
aba714d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 10, 2024
f44071b
Bump docker/login-action from 3.1.0 to 3.2.0
dependabot[bot] Jun 3, 2024
2fb5432
Bump docker/login-action from 3.1.0 to 3.2.0
dependabot[bot] Jun 3, 2024
9175684
Add minimal pymc example
HarshvirSandhu Apr 26, 2024
8964474
Add experiment background info
HarshvirSandhu May 2, 2024
a5d81bf
Update variable names
HarshvirSandhu May 2, 2024
d65db8e
Update variable names
HarshvirSandhu May 7, 2024
c657fef
Add summary outputs
HarshvirSandhu May 12, 2024
33b24cc
Update example outputs and test that it works
kiramclean Jun 15, 2024
5e82394
move pytest imports to be local
Jun 15, 2024
8a68a5c
minor text improvements (#7361)
alimanfoo Jun 16, 2024
bc3aea6
Avoid repeated status polling in smc
aseyboldt Jun 10, 2024
606a12e
Bump docker/build-push-action from 5.3.0 to 5.4.0
dependabot[bot] Jun 17, 2024
bbd5739
Bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 17, 2024
5bc6801
Add more idata attributes for JAX samplers (#7360)
osyuksel Jun 17, 2024
397e6f9
Standardize `draws` as parameter in `sample_prior_predictive` (#7366)
wd60622 Jun 17, 2024
38c038a
Remove deprecated Model functionality
ricardoV94 Jun 10, 2024
91d8160
More relevant documentation examples for Model
ricardoV94 Jun 10, 2024
7d913ce
Allow opting out of model nesting
ricardoV94 Jun 10, 2024
4878fdc
remove mutable=True. closes #7367
wd60622 Jun 17, 2024
76799fa
Remove irrelevant skipif
ricardoV94 Jun 17, 2024
9eaf92a
Remove test uses of deprecated useless `transform=None` in favor of `…
ricardoV94 Jun 17, 2024
c2c46a7
Remove default initval for Flat variables
ricardoV94 Jun 21, 2024
ebea3b8
[pre-commit.ci] pre-commit autoupdate (#7371)
pre-commit-ci[bot] Jun 22, 2024
894daeb
Simplify Categorical logp and respect gufunc signature
ricardoV94 Jun 19, 2024
341a2de
Simplify ICAR
ricardoV94 Jun 17, 2024
68e3366
Simplify CAR
ricardoV94 Jun 21, 2024
c1b0f21
Simplify MatrixNormal rng_fn
ricardoV94 Jun 21, 2024
2d4f4da
Make KroneckerNormal a SymbolicRV with a valid signature
ricardoV94 Jun 21, 2024
057a6d2
Bump PyTensor dependency
ricardoV94 Jun 17, 2024
e71d1cb
Make DiracDelta a SymbolicRV
ricardoV94 Jun 19, 2024
5cd517e
Fix circular gp circular dependency more cleanly
ricardoV94 Jun 24, 2024
90d2474
Move CustomDist code to its own module
ricardoV94 Jun 24, 2024
abec532
Use more specialized imports in test_custom
ricardoV94 Jun 24, 2024
ae1b7a8
Rename support point rewrite
ricardoV94 Jun 24, 2024
7af0a87
Add own section for CustomDist in distributions API
ricardoV94 Jun 24, 2024
b496127
Don't copy inputs in constant_fold
ricardoV94 Jun 24, 2024
99fd405
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jun 24, 2024
5e61495
Update copyright year
ricardoV94 Jun 25, 2024
b7e3d40
Run core notebooks locally
ricardoV94 Jun 25, 2024
29eef08
Do not run NB on RTD temporarily
ricardoV94 Jun 25, 2024
d4e5db1
Avoid spurious deprecation warning signature/extended_signature in Cu…
ricardoV94 Jun 25, 2024
9792dff
Test multiple `None` dims work together
ricardoV94 Jun 25, 2024
d5ff424
Raise when number of dims does not match var.ndim
ricardoV94 Jun 25, 2024
cbf1591
Add Conda Downloads Badge
PatriceJada Jun 20, 2024
516cf27
Fix typing in `logprob.tensor`
michaelosthege Jun 30, 2024
dd9c659
Bump docker/build-push-action from 5.4.0 to 6.2.0
dependabot[bot] Jul 1, 2024
99d16be
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 1, 2024
f0631b4
Change type checks to use is rather than =
twiecki Jul 1, 2024
0799e9e
Add link example
AlexAndorra Apr 1, 2024
14da81b
Fix typo
AlexAndorra Apr 1, 2024
28924dc
Add Oriol's comments
AlexAndorra Apr 5, 2024
fd227e3
Add Oriol's comments
AlexAndorra Jun 28, 2024
ca7676a
change rendering to fit into page
OriolAbril Jul 1, 2024
20a69db
Add how to identify anchor_id
AlexAndorra Jul 1, 2024
f719796
Refactor model graph and allow suppressing dim lengths (#7392)
wd60622 Jul 3, 2024
1c532f8
Do not consider dims without coords volatile if length has not change…
JasonTam Jul 7, 2024
ded7990
Bump docker/build-push-action from 6.2.0 to 6.3.0
dependabot[bot] Jul 8, 2024
8fe3833
Bump docker/setup-buildx-action from 3.3.0 to 3.4.0
dependabot[bot] Jul 8, 2024
a4ea9fc
compile_pymc handles default updates for duplicated nodes
ricardoV94 Jul 9, 2024
c43a4db
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 8, 2024
2216b59
Reduce JAX post-processing memory usage (#7311)
andrewdipper Jul 11, 2024
0c6d0df
Seed flaky test
ricardoV94 Jul 4, 2024
330bbcc
Bump PyTensor dependency
ricardoV94 Jul 4, 2024
1b67888
Test less extreme combinations of parameters in SkewStudentT logcdf
ricardoV94 Jul 9, 2024
d0e274e
Move mypy settings to pyproject.toml
Armavica Jun 22, 2024
641a60b
Move versioneer settings to pyproject.toml
Armavica Jun 22, 2024
c8b22df
Reduce blackjax sampling memory usage (#7407)
junpenglao Jul 13, 2024
bde53cc
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 15, 2024
ab467da
Fix isinstance check.
twiecki Jul 17, 2024
8fd4f1c
pin polyagamma (#7418)
ferrine Jul 19, 2024
f6d1b33
fix: Replace unsafe under vectorize pt.zeros(value.shape) with zeros_…
ferrine Jul 17, 2024
e988bc5
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 22, 2024
8eaa9be
Print OP name for unnamed RVs instead of raising AssertionErrors
lucianopaz Jul 24, 2024
8ffb951
revert formatting
tvwenger Jul 29, 2024
b407c01
update docs
tvwenger Jul 29, 2024
48e56c3
Implement specialized MvNormal density based on precision matrix
ricardoV94 Jun 3, 2024
c8f3704
Remove non-generative incsubtensor logp inference
ricardoV94 Oct 30, 2023
d4714d2
Remove unnecessary gradient related methods from dummy Ops
ricardoV94 Aug 1, 2024
a3e2261
Do not instantiate all transforms in find_measurable_transforms
ricardoV94 Aug 1, 2024
43dc4be
Rename MeasurableVariable to MeasurableOp
ricardoV94 Aug 1, 2024
e6cb663
removed non-working twitter link in docs/source/contributing/develope…
Demon-Sheriff Aug 9, 2024
f3cff73
Changed PytTensor import alias to pt
Krupakar-Reddy-S Aug 9, 2024
8cdc9ee
Blackjax sampler fix for breaking change / enable progress bar under …
andrewdipper Aug 12, 2024
747fda3
Clarified 0-based indexing requirement for OrderedLogistic and Ordere…
kdotmanoj Aug 15, 2024
772825e
Add FutureWarning
aloctavodia Aug 14, 2024
4fb475b
Allow logcdf inference of discrete variables
ricardoV94 Aug 1, 2024
48a8b6b
Remove special logprob case for MaxNeg (used for Min logprob)
ricardoV94 Aug 1, 2024
799c98f
Fix typo in the docstring of the Beta distribution (#7469)
erik-werner Aug 21, 2024
9b7e759
Remove debug print statements
ricardoV94 Aug 23, 2024
68a7578
Fix test failures due to old change_flags API
maresb Aug 23, 2024
cb070ad
Make run_mypy script executable
maresb Aug 25, 2024
ede127c
Bump docker/build-push-action from 6.3.0 to 6.7.0
dependabot[bot] Aug 19, 2024
afd8c3f
Make lower and upper optional argument in Censored
ricardoV94 Aug 24, 2024
c8afedb
Remove None as default arguments in ExGaussian
ricardoV94 Aug 24, 2024
c92a9a9
Allow truncation of self-contained SymbolicRandomVariables
ricardoV94 Aug 24, 2024
365b117
Add ability to set mode in check_start_vals
lucianopaz Aug 28, 2024
064822a
Add cross-ref to model.compile_fn
lucianopaz Aug 28, 2024
0680957
Add compile_kwargs to compute_log_density functions
lucianopaz Aug 28, 2024
d313012
Switch to CITATION.cff (#7479)
Armavica Aug 28, 2024
90f20a2
Add multi-output support to GP Latent (#7471)
AlexAndorra Aug 30, 2024
253513b
Make zip strict in `apply_function_over_dataset`
ricardoV94 Aug 29, 2024
d596afb
Remove deprecated Distribution kwargs (#7488)
thomasaarholt Sep 3, 2024
93b540f
Ignore pixi files (#7493)
fonnesbeck Sep 7, 2024
e19cd39
Don't name unused variables
ricardoV94 Aug 29, 2024
623ca42
Wrap Minibatch Operation in OpFromGraph
ricardoV94 Aug 27, 2024
6e0d317
Allow Minibatch logp on derived RVs
ricardoV94 Aug 27, 2024
2856062
Deprecate Generator
ricardoV94 Aug 27, 2024
e415124
Rename MeasurableVariable to MeasurableOp
ricardoV94 Aug 1, 2024
04fe3cd
Remove MeasurableOpMixin
ricardoV94 Sep 6, 2024
585962d
Remove unused naive_bcast_rv_lift rewrite
ricardoV94 Sep 6, 2024
db0b218
Remove stale xfail scan test
ricardoV94 Sep 6, 2024
b06d6c3
Add test for scan logp with multiple valued output types
ricardoV94 Sep 6, 2024
97df9c3
Introduce valued variables in logprob IR
ricardoV94 Jul 31, 2024
8270111
Add a pre-commit hook to validate CITATION.cff
Armavica Sep 11, 2024
0cc291a
Update GLM_linear.ipynb to correct the URL for statsmodels on sourcef…
seyedrezamirkhani Sep 3, 2024
af5ea5c
implemented fix for escaping underscores in latex repr and added a un…
Dekermanjian Sep 16, 2024
79fafb0
Enable sphinx-lint pre-commit hook
Armavica Sep 16, 2024
4300be1
Enable ruff to format code in docstrings
Armavica Sep 17, 2024
b9fbfed
fix returned object when no vars to sample and extend=True
OriolAbril Sep 18, 2024
b7d9e1d
Bump docker/build-push-action from 6.7.0 to 6.8.0
dependabot[bot] Sep 30, 2024
45069a9
Bump actions/checkout from 4.1.7 to 4.2.0
dependabot[bot] Sep 30, 2024
67f43ae
Build the package with python -m build
Armavica Oct 2, 2024
cdcdb58
Allow copy and deepcopy of PYMC models (#7492)
Dekermanjian Oct 3, 2024
b810389
Fix dangling step in test_population
lucianopaz Sep 25, 2024
4ea1406
Detach step methods from numpy global random state
lucianopaz Sep 23, 2024
36e0d0c
Add sampling state base classes
lucianopaz Sep 19, 2024
0a3f5e4
Add step method state
lucianopaz Sep 19, 2024
c417476
Add metropolis sampling state
lucianopaz Sep 19, 2024
db32421
Add slice sampling state
lucianopaz Sep 19, 2024
465d8ac
Add HMC sampling state
lucianopaz Sep 19, 2024
4f06ab7
Do not use initval in test model
ricardoV94 Oct 8, 2024
6f204fd
Remove unnecessary list after sorted
Armavica Oct 8, 2024
2aac37e
Use literals when possible
Armavica Oct 8, 2024
750ef7b
Remove unnecessary dictionary comprehensions
Armavica Oct 8, 2024
cefd39e
Remove unnecessary list comprehensions
Armavica Oct 8, 2024
ca13ed6
Use set literals
Armavica Oct 8, 2024
35dd87a
Use list literals
Armavica Oct 8, 2024
63210f5
Use comprehension instead of map
Armavica Oct 8, 2024
1b6d7db
Enable ruff C4 rules (comprehensions)
Armavica Oct 8, 2024
f7bb4e7
Auto-fix rules D202, D205, D209, D403 and D406
Armavica Oct 7, 2024
aa4906b
Auto-fix D200, D301, D400
Armavica Oct 7, 2024
b2c4be1
Add docstrings to all modules (D104)
Armavica Oct 7, 2024
ec52590
Add a docstring to all magic methods (D105)
Armavica Oct 7, 2024
c209f99
Remove file encoding statements
Armavica Oct 7, 2024
0152862
Write docstrings in imperative mood (D401)
Armavica Oct 8, 2024
c3b03c6
Put summary line on only one line (D205)
Armavica Oct 8, 2024
c4b28df
Use ruff to check for numpy-style docstrings
Armavica Oct 8, 2024
2ac50d1
Replace 'an pytensor' -> 'a pytensor'
Armavica Oct 8, 2024
78454b0
Enable pygrep-hooks
Armavica Sep 17, 2024
01b65e6
Fix single backticks for code
Armavica Sep 17, 2024
e53affe
Precise blanket type ignore and noqa statements
Armavica Sep 17, 2024
40a1972
Tweak ruff config
Armavica Sep 17, 2024
c7ad546
Replace no-print-statements with the T20 ruff rules
Armavica Oct 7, 2024
1457626
Replace no-relative-imports with TID ruff rules
Armavica Oct 7, 2024
938aff4
Fix some type hinting to help with migrating `Distribution` (#7484)
thomasaarholt Oct 9, 2024
0b4215d
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Oct 7, 2024
e25a042
Bump docker/login-action from 3.2.0 to 3.3.0
dependabot[bot] Jul 29, 2024
81cfe3c
Simplify Model __new__ and metaclass (#7473)
thomasaarholt Oct 10, 2024
54f7101
Add mean dispatch for pymc distributions
lucianopaz Oct 9, 2024
bcdb7fc
Remove deprecated assert_negative_support
Armavica Oct 10, 2024
22b8982
Remove deprecated zerosum_axes argument to ZeroSumNormal
Armavica Oct 10, 2024
d8cba79
Remove deprecated arguments in smc/sampling.py
Armavica Oct 10, 2024
c61e9cd
Remove deprecated sampling_jax.py
Armavica Oct 10, 2024
5352798
Allow for passing of backend and gradient_backend to nutpie (#7535)
fonnesbeck Oct 11, 2024
37b0387
Change order of arguments in `get_related_valued_nodes`
ricardoV94 Oct 18, 2024
c3c1d94
Only allow measurable transpositions in univariate Elemwise chains or…
ricardoV94 Oct 18, 2024
1249c86
Derive matmul probability
ricardoV94 Oct 18, 2024
21dbc38
Unorphan the model transform doc page
Armavica Oct 21, 2024
56a1d56
[pre-commit.ci] pre-commit autoupdate (#7545)
pre-commit-ci[bot] Oct 24, 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
8 changes: 4 additions & 4 deletions .github/workflows/devcontainer-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:

steps:
- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3.0.0
uses: docker/setup-buildx-action@v3.4.0

- name: Prepare metadata
id: meta
Expand All @@ -38,15 +38,15 @@ jobs:
type=raw,value=latest

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
id: docker_build
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
uses: docker/build-push-action@32945a339266b759abcbdc89316275140b0fc960
with:
context: .
file: scripts/dev.Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dispatched_pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runPreCommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
repository: ${{github.event.client_payload.pull_request.head.repo.full_name}}
ref: ${{github.event.client_payload.pull_request.head.ref}}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938

- name: Login to Docker Hub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -34,7 +34,7 @@ jobs:
type=semver,pattern={{major}}.{{minor}}

- name: Build and load image
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
uses: docker/build-push-action@32945a339266b759abcbdc89316275140b0fc960
with:
context: .
file: scripts/Dockerfile
Expand All @@ -46,7 +46,7 @@ jobs:
docker run --rm ${{ env.CONTAINER_NAME }} conda run -n pymc-dev python -c 'import pymc;print(pymc.__version__)'

- name: Build and push
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09
uses: docker/build-push-action@32945a339266b759abcbdc89316275140b0fc960
with:
context: .
push: true
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/pre-commit.yml → .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
name: pre-commit
name: mypy

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
env:
SKIP: no-commit-to-branch
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-python@v5
with:
python-version: "3.9" # Run pre-commit on oldest supported Python version
- uses: pre-commit/action@v3.0.1
mypy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Cache conda
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -52,7 +42,7 @@ jobs:
activate-environment: pymc-test
channel-priority: strict
environment-file: conda-envs/environment-test.yml
python-version: "3.9" # Run pre-commit on oldest supported Python version
python-version: "3.10" # Run pre-commit on oldest supported Python version
use-mamba: true
use-only-tar-bz2: false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267
- name: Install-pymc and mypy dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_PYMC }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -26,10 +26,10 @@ jobs:
# pytest --cov=./pymc --cov-report term-missing pymc/
- name: Install release tooling
run: |
pip install twine wheel
pip install build twine
- name: Build package
run: |
python setup.py sdist bdist_wheel
python -m build
- name: Check version number match
run: |
echo "GITHUB_REF: ${GITHUB_REF}"
Expand Down
53 changes: 32 additions & 21 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
outputs:
changes: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
with:
fetch-depth: 0
- uses: dorny/paths-filter@v3
Expand All @@ -48,7 +48,7 @@ jobs:
matrix:
os: [ubuntu-20.04]
floatx: [float64]
python-version: ["3.11"]
python-version: ["3.12"]
test-subset:
- |
tests/test_util.py
Expand All @@ -65,11 +65,13 @@ jobs:
- |
tests/distributions/test_continuous.py
tests/distributions/test_multivariate.py
tests/distributions/moments/test_means.py

- |
tests/distributions/test_bound.py
tests/distributions/test_censored.py
tests/distributions/test_custom.py
tests/distributions/test_simulator.py
tests/sampling/test_deterministic.py
tests/sampling/test_forward.py
tests/sampling/test_population.py
tests/stats/test_convergence.py
Expand Down Expand Up @@ -97,10 +99,12 @@ jobs:
tests/model/test_fgraph.py
tests/model/transform/test_basic.py
tests/model/transform/test_conditioning.py
tests/model/transform/test_optimization.py
tests/test_model_graph.py
tests/ode/test_ode.py
tests/ode/test_utils.py
tests/step_methods/hmc/test_quadpotential.py
tests/step_methods/test_state.py

- |
tests/backends/test_mcbackend.py
Expand All @@ -112,6 +116,7 @@ jobs:
tests/logprob/test_censoring.py
tests/logprob/test_composite_logprob.py
tests/logprob/test_cumsum.py
tests/logprob/test_linalg.py
tests/logprob/test_mixture.py
tests/logprob/test_order.py
tests/logprob/test_rewriting.py
Expand All @@ -130,7 +135,7 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Cache conda
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -167,14 +172,16 @@ jobs:
run: |
conda activate pymc-test
pip install -e .
pip install --pre -U polyagamma
# TODO: https://github.com/pymc-devs/pymc/issues/7417
pip install --pre -U 'polyagamma<1.3.7'
python --version
conda list
- name: Run tests
run: |
conda activate pymc-test
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
env_vars: TEST_SUBSET
Expand All @@ -188,12 +195,12 @@ jobs:
matrix:
os: [windows-latest]
floatx: [float64]
python-version: ["3.9"]
python-version: ["3.10"]
test-subset:
- tests/variational/test_approximations.py tests/variational/test_callbacks.py tests/variational/test_inference.py tests/variational/test_opvi.py tests/test_initial_point.py
- tests/model/test_core.py tests/sampling/test_mcmc.py
- tests/gp/test_cov.py tests/gp/test_gp.py tests/gp/test_mean.py tests/gp/test_util.py tests/ode/test_ode.py tests/ode/test_utils.py tests/smc/test_smc.py tests/sampling/test_parallel.py
- tests/step_methods/test_metropolis.py tests/step_methods/test_slicer.py tests/step_methods/hmc/test_nuts.py tests/step_methods/test_compound.py tests/step_methods/hmc/test_hmc.py
- tests/step_methods/test_metropolis.py tests/step_methods/test_slicer.py tests/step_methods/hmc/test_nuts.py tests/step_methods/test_compound.py tests/step_methods/hmc/test_hmc.py tests/step_methods/test_state.py

fail-fast: false
runs-on: ${{ matrix.os }}
Expand All @@ -204,7 +211,7 @@ jobs:
run:
shell: cmd
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Cache conda
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -241,16 +248,17 @@ jobs:
run: |
conda activate pymc-test
pip install -e .
pip install --pre -U polyagamma
pip install --pre -U 'polyagamma<1.3.7'
python --version
conda list
- 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 &&
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET%
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
env_vars: TEST_SUBSET
Expand All @@ -264,7 +272,7 @@ jobs:
matrix:
os: [macos-latest]
floatx: [float64]
python-version: ["3.10"]
python-version: ["3.12"]
test-subset:
- |
tests/sampling/test_parallel.py
Expand All @@ -287,7 +295,7 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Cache conda
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -325,11 +333,12 @@ jobs:
conda activate pymc-test
pip install -e .
python --version
conda list
- name: Run tests
run: |
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
env_vars: TEST_SUBSET
Expand All @@ -343,7 +352,7 @@ jobs:
matrix:
os: [ubuntu-20.04]
floatx: [float64]
python-version: ["3.11"]
python-version: ["3.12"]
test-subset:
- tests/sampling/test_jax.py tests/sampling/test_mcmc_external.py
fail-fast: false
Expand All @@ -355,7 +364,7 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Cache conda
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -393,11 +402,12 @@ jobs:
conda activate pymc-test
pip install -e .
python --version
conda list
- name: Run tests
run: |
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 $TEST_SUBSET
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
env_vars: TEST_SUBSET
Expand All @@ -411,7 +421,7 @@ jobs:
matrix:
os: [windows-latest]
floatx: [float32]
python-version: ["3.11"]
python-version: ["3.12"]
test-subset:
- tests/sampling/test_mcmc.py tests/ode/test_ode.py tests/ode/test_utils.py tests/distributions/test_transform.py
fail-fast: false
Expand All @@ -423,7 +433,7 @@ jobs:
run:
shell: cmd
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- name: Cache conda
uses: actions/cache@v4
env:
Expand Down Expand Up @@ -460,16 +470,17 @@ jobs:
run: |
conda activate pymc-test
pip install -e .
pip install --pre -U polyagamma
pip install --pre -U 'polyagamma<1.3.7'
python --version
conda list
- 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 &&
python -m pytest -vv --cov=pymc --cov-report=xml --no-cov-on-fail --cov-report term --durations=50 %TEST_SUBSET%
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} # use token for more robust uploads
env_vars: TEST_SUBSET
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ pythonenv*
env/
venv/
.venv/
pixi.toml
pixi.lock
.pixi/
Loading
Loading