Skip to content

Commit b81397e

Browse files
Merge branch 'master' into fix-4206
2 parents 2e38d89 + b990e49 commit b81397e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1575
-1568
lines changed

.codecov.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
codecov:
2-
require_ci_to_pass: yes
2+
require_ci_to_pass: no
33

44
coverage:
55
precision: 2
66
round: down
77
range: "70...100"
8-
98
status:
10-
project: yes
11-
patch: yes
12-
changes: no
9+
project:
10+
default:
11+
# basic
12+
target: auto
13+
threshold: 1%
14+
base: auto
15+
patch:
16+
default:
17+
# basic
18+
target: 50%
19+
threshold: 1%
20+
base: auto
1321

1422
comment:
1523
layout: "reach, diff, flags, files"

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ _build
2121
# Merge tool
2222
*.orig
2323

24-
# Test artifacts
25-
mcmc.sqlite
26-
2724
# Docker development
2825
# notebooks/
2926

@@ -41,3 +38,6 @@ benchmarks/results/
4138
pytestdebug.log
4239
.dir-locals.el
4340
.pycheckers
41+
42+
# Codespaces
43+
pythonenv*

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ repos:
55
- id: end-of-file-fixer
66
- id: check-toml
77
- repo: https://github.com/nbQA-dev/nbQA
8-
rev: 0.3.5
8+
rev: 0.4.1
99
hooks:
1010
- id: nbqa-black
11+
additional_dependencies: [black==20.8b1]
1112
- id: nbqa-isort
13+
additional_dependencies: [isort==5.6.4]
1214
- id: nbqa-pyupgrade
15+
additional_dependencies: [pyupgrade==2.7.4]
1316
- repo: https://github.com/asottile/pyupgrade
14-
rev: v2.7.3
17+
rev: v2.7.4
1518
hooks:
1619
- id: pyupgrade
1720
args: [--py36-plus]

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Features
3939
- **Variational inference**: `ADVI <http://www.jmlr.org/papers/v18/16-107.html>`__
4040
for fast approximate posterior estimation as well as mini-batch ADVI
4141
for large data sets.
42-
- Relies on `Theano <http://deeplearning.net/software/theano/>`__ which provides:
42+
- Relies on `Theano <https://theano-pymc.readthedocs.io/en/latest/>`__ which provides:
4343
* Computation optimization and dynamic C compilation
4444
* Numpy broadcasting and advanced indexing
4545
* Linear algebra operators

RELEASE-NOTES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## PyMC3 3.9.x (on deck)
44

55
### Maintenance
6+
- Removed non-NDArray (Text, SQLite, HDF5) backends and associated tests.
67
- Switch the dependency of Theano to our own fork, [Theano-PyMC](https://github.com/pymc-devs/Theano-PyMC).
78
- Mentioned the way to do any random walk with `theano.tensor.cumsum()` in `GaussianRandomWalk` docstrings (see [#4048](https://github.com/pymc-devs/pymc3/pull/4048)).
89
- Fixed numerical instability in ExGaussian's logp by preventing `logpow` from returning `-inf` (see [#4050](https://github.com/pymc-devs/pymc3/pull/4050)).
@@ -12,13 +13,18 @@
1213

1314
### Documentation
1415

16+
* Added a new notebook demonstrating how to incorporate sampling from a conjugate Dirichlet-multinomial posterior density in conjunction with other step methods (see [#4199](https://github.com/pymc-devs/pymc3/pull/4199)).
17+
1518
### New features
1619
- `sample_posterior_predictive_w` can now feed on `xarray.Dataset` - e.g. from `InferenceData.posterior`. (see [#4042](https://github.com/pymc-devs/pymc3/pull/4042))
1720
- Added `pymc3.gp.cov.Circular` kernel for Gaussian Processes on circular domains, e.g. the unit circle (see [#4082](https://github.com/pymc-devs/pymc3/pull/4082)).
1821
- Add MLDA, a new stepper for multilevel sampling. MLDA can be used when a hierarchy of approximate posteriors of varying accuracy is available, offering improved sampling efficiency especially in high-dimensional problems and/or where gradients are not available (see [#3926](https://github.com/pymc-devs/pymc3/pull/3926))
19-
- Change SMC metropolis kernel to independent metropolis kernel [#4115](https://github.com/pymc-devs/pymc3/pull/3926))
22+
- Change SMC metropolis kernel to independent metropolis kernel [#4115](https://github.com/pymc-devs/pymc3/pull/4115))
2023
- Add alternative parametrization to NegativeBinomial distribution in terms of n and p (see [#4126](https://github.com/pymc-devs/pymc3/issues/4126))
24+
- Add Bayesian Additive Regression Trees (BARTs) [#4183](https://github.com/pymc-devs/pymc3/pull/4183))
2125
- Added a new `MixtureSameFamily` distribution to handle mixtures of arbitrary dimensions in vectorized form (see [#4185](https://github.com/pymc-devs/pymc3/issues/4185)).
26+
- Added semantically meaningful `str` representations to PyMC3 objects for console, notebook, and GraphViz use (see [#4076](https://github.com/pymc-devs/pymc3/pull/4076), [#4065](https://github.com/pymc-devs/pymc3/pull/4065), [#4159](https://github.com/pymc-devs/pymc3/pull/4159), and [#4217](https://github.com/pymc-devs/pymc3/pull/4217))
27+
2228

2329

2430
## PyMC3 3.9.3 (11 August 2020)

docs/source/api/backends.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,6 @@ ndarray
1515
.. automodule:: pymc3.backends.ndarray
1616
:members:
1717

18-
sqlite
19-
^^^^^^
20-
21-
.. currentmodule:: pymc3.backends.sqlite
22-
23-
.. automodule:: pymc3.backends.sqlite
24-
:members:
25-
26-
text
27-
^^^^
28-
29-
.. currentmodule:: pymc3.backends.text
30-
31-
.. automodule:: pymc3.backends.text
32-
:members:
33-
3418
tracetab
3519
^^^^^^^^
3620

docs/source/notebooks/AR.ipynb

Lines changed: 58 additions & 138 deletions
Large diffs are not rendered by default.

docs/source/notebooks/lda-advi-aevb.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,9 @@
718718
}
719719
],
720720
"source": [
721-
"%time result_pymc3 = eval_lda(transform_pymc3, beta_pymc3, docs_te.toarray(), np.arange(100))\n",
721+
"%time result_pymc3 = eval_lda(\\\n",
722+
" transform_pymc3, beta_pymc3, docs_te.toarray(), np.arange(100)\\\n",
723+
" )\n",
722724
"print(\"Predictive log prob (pm3) = {}\".format(result_pymc3[\"lp\"]))"
723725
]
724726
},
@@ -750,7 +752,9 @@
750752
" return thetas / thetas.sum(axis=1)[:, np.newaxis]\n",
751753
"\n",
752754
"\n",
753-
"%time result_sklearn = eval_lda(transform_sklearn, beta_sklearn, docs_te.toarray(), np.arange(100))\n",
755+
"%time result_sklearn = eval_lda(\\\n",
756+
" transform_sklearn, beta_sklearn, docs_te.toarray(), np.arange(100)\\\n",
757+
" )\n",
754758
"print(\"Predictive log prob (sklearn) = {}\".format(result_sklearn[\"lp\"]))"
755759
]
756760
},

0 commit comments

Comments
 (0)