Skip to content

Commit 14875f5

Browse files
authored
bump version to 0.11.0 (#1502)
* bump version to 0.11.0 * fix docs
1 parent 9d20e6f commit 14875f5

File tree

4 files changed

+47
-34
lines changed

4 files changed

+47
-34
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22

33
## v0.x.x Unreleased
44
### New features
5+
6+
### Maintenance and fixes
7+
8+
### Deprecation
9+
10+
### Documentation
11+
12+
## v0.11.0 (2021 Dec 17)
13+
### New features
514
* Added `to_dataframe` method to InferenceData ([1395](https://github.com/arviz-devs/arviz/pull/1395))
615
* Added `__getitem__` magic to InferenceData ([1395](https://github.com/arviz-devs/arviz/pull/1395))
716
* Added group argument to summary ([1408](https://github.com/arviz-devs/arviz/pull/1408))
817
* Add `ref_line`, `bar`, `vlines` and `marker_vlines` kwargs to `plot_rank` ([1419](https://github.com/arviz-devs/arviz/pull/1419))
918
* Add observed argument to (un)plot observed data in `plot_ppc` ([1422](https://github.com/arviz-devs/arviz/pull/1422))
1019
* Add support for named dims and coordinates with multivariate observations ([1429](https://github.com/arviz-devs/arviz/pull/1429))
11-
* Add support for discrete variables in rank plots ([1433](https://github.com/arviz-devs/arviz/pull/1433))
20+
* Add support for discrete variables in rank plots ([1433](https://github.com/arviz-devs/arviz/pull/1433)) and
21+
`loo_pit` ([1500](https://github.com/arviz-devs/arviz/pull/1500))
1222
* Add `skipna` argument to `plot_posterior` ([1432](https://github.com/arviz-devs/arviz/pull/1432))
1323
* Make stacking the default method to compute weights in `compare` ([1438](https://github.com/arviz-devs/arviz/pull/1438))
1424
* Add `copy()` method to `InferenceData` class. ([1501](https://github.com/arviz-devs/arviz/pull/1501)).
@@ -35,6 +45,9 @@
3545
* Do not plot divergences in `plot_trace` when `kind=rank_vlines` or `kind=rank_bars` ([1476](https://github.com/arviz-devs/arviz/issues/1476))
3646
* Allow ignoring `observed` argument of `pymc3.DensityDist` in `from_pymc3` ([1495](https://github.com/arviz-devs/arviz/pull/1495))
3747
* Make `from_pymc3` compatible with theano-pymc 1.1.0 ([1495](https://github.com/arviz-devs/arviz/pull/1495))
48+
* Improve typing hints ([1491](https://github.com/arviz-devs/arviz/pull/1491), ([1492](https://github.com/arviz-devs/arviz/pull/1492),
49+
([1493](https://github.com/arviz-devs/arviz/pull/1493), ([1494](https://github.com/arviz-devs/arviz/pull/1494) and
50+
([1497](https://github.com/arviz-devs/arviz/pull/1497))
3851

3952

4053
### Deprecation

arviz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pylint: disable=wildcard-import,invalid-name,wrong-import-position
22
"""ArviZ is a library for exploratory analysis of Bayesian models."""
3-
__version__ = "0.10.0"
3+
__version__ = "0.11.0"
44

55
import logging
66
import os

arviz/data/inference_data.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -834,27 +834,27 @@ def stack(
834834
835835
In [1]: import arviz as az
836836
...: datadict = {
837-
"a": np.random.randn(100),
838-
"b": np.random.randn(1, 100, 10),
839-
"c": np.random.randn(1, 100, 3, 4),
840-
}
837+
...: "a": np.random.randn(100),
838+
...: "b": np.random.randn(1, 100, 10),
839+
...: "c": np.random.randn(1, 100, 3, 4),
840+
...: }
841841
...: coords = {
842-
"c1": np.arange(3),
843-
"c99": np.arange(4),
844-
"b1": np.arange(10),
845-
}
842+
...: "c1": np.arange(3),
843+
...: "c99": np.arange(4),
844+
...: "b1": np.arange(10),
845+
...: }
846846
...: dims = {"c": ["c1", "c99"], "b": ["b1"]}
847847
...: idata = az.from_dict(
848848
...: posterior=datadict, posterior_predictive=datadict, coords=coords, dims=dims
849849
...: )
850-
...: idata
850+
...: idata.posterior
851851
852852
In order to stack two dimensions ``c1`` and ``c99`` to ``z``, we can use:
853853
854854
.. ipython::
855855
856856
In [1]: idata.stack(z=["c1", "c99"], inplace=True)
857-
...: idata
857+
...: idata.posterior
858858
859859
See Also
860860
--------
@@ -919,28 +919,28 @@ def unstack(self, dim=None, groups=None, filter_groups=None, inplace=False):
919919
920920
In [1]: import arviz as az
921921
...: datadict = {
922-
"a": np.random.randn(100),
923-
"b": np.random.randn(1, 100, 10),
924-
"c": np.random.randn(1, 100, 3, 4),
925-
}
922+
...: "a": np.random.randn(100),
923+
...: "b": np.random.randn(1, 100, 10),
924+
...: "c": np.random.randn(1, 100, 3, 4),
925+
...: }
926926
...: coords = {
927-
"c1": np.arange(3),
928-
"c99": np.arange(4),
929-
"b1": np.arange(10),
930-
}
927+
...: "c1": np.arange(3),
928+
...: "c99": np.arange(4),
929+
...: "b1": np.arange(10),
930+
...: }
931931
...: dims = {"c": ["c1", "c99"], "b": ["b1"]}
932-
...: dataset = from_dict(
932+
...: idata = az.from_dict(
933933
...: posterior=datadict, posterior_predictive=datadict, coords=coords, dims=dims
934934
...: )
935-
...: dataset.stack(z=["c1", "c99"], inplace=True)
936-
...: dataset
935+
...: idata.stack(z=["c1", "c99"], inplace=True)
936+
...: idata
937937
938938
In order to unstack the dimension ``z``, we use:
939939
940940
.. ipython::
941941
942-
In [1]: dataset.unstack(inplace=True)
943-
...: dataset
942+
In [1]: idata.unstack(inplace=True)
943+
...: idata
944944
945945
See Also
946946
--------
@@ -1078,16 +1078,16 @@ def rename_vars(self, name_dict=None, groups=None, filter_groups=None, inplace=F
10781078
10791079
In [1]: import arviz as az
10801080
...: idata = az.load_arviz_data("rugby")
1081-
...: print(list(idata.posterior.data_vars)
1082-
...: print(list(idata.prior.data_vars)
1081+
...: print(list(idata.posterior.data_vars))
1082+
...: print(list(idata.prior.data_vars))
10831083
10841084
In order to rename the data variables, we use:
10851085
10861086
.. ipython::
10871087
10881088
In [1]: idata.rename_vars({"home": "home_new"}, inplace=True)
1089-
...: print(list(idata.posterior.data_vars)
1090-
...: print(list(idata.prior.data_vars)
1089+
...: print(list(idata.posterior.data_vars))
1090+
...: print(list(idata.prior.data_vars))
10911091
10921092
See Also
10931093
--------
@@ -1151,16 +1151,16 @@ def rename_dims(self, name_dict=None, groups=None, filter_groups=None, inplace=F
11511151
11521152
In [1]: import arviz as az
11531153
...: idata = az.load_arviz_data("rugby")
1154-
...: print(list(idata.posterior.dims)
1155-
...: print(list(idata.prior.dims)
1154+
...: print(list(idata.posterior.dims))
1155+
...: print(list(idata.prior.dims))
11561156
11571157
In order to rename the dimensions, we use:
11581158
11591159
.. ipython::
11601160
11611161
In [1]: idata.rename_dims({"team": "team_new"}, inplace=True)
1162-
...: print(list(idata.posterior.dims)
1163-
...: print(list(idata.prior.dims)
1162+
...: print(list(idata.posterior.dims))
1163+
...: print(list(idata.prior.dims))
11641164
11651165
See Also
11661166
--------

examples/matplotlib/mpl_plot_violin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Violin plot
3-
==========
3+
===========
44
55
_thumb: .2, .8
66
_example_title: Violin plot

0 commit comments

Comments
 (0)