Skip to content

Commit bbf8624

Browse files
michaelosthegetwieckiricardoV94
committed
Implement backwards-compatble shape and Ellipsis-enabled dims
Co-authored-by: Thomas Wiecki <thomas.wiecki@gmail.com> Co-authored-by: Ricardo <ricardo.vieira1994@gmail.com>
1 parent ccc1dd8 commit bbf8624

File tree

6 files changed

+592
-100
lines changed

6 files changed

+592
-100
lines changed

RELEASE-NOTES.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010
### New Features
1111
- The `CAR` distribution has been added to allow for use of conditional autoregressions which often are used in spatial and network models.
12+
- The dimensionality of model variables can now be parametrized through either of `shape`, `dims` or `size` (see [#4696](https://github.com/pymc-devs/pymc3/pull/4696)):
13+
- With `shape` the length of dimensions must be given numerically or as scalar Aesara `Variables`. Numeric entries in `shape` restrict the model variable to the exact length and re-sizing is no longer possible.
14+
- `dims` keeps model variables re-sizeable (for example through `pm.Data`) and leads to well defined coordinates in `InferenceData` objects. An `Ellipsis` (`...`) in the last position of `dims` can be used as short-hand notation for implied dimensions.
15+
- The `size` kwarg behaves like it does in Aesara/NumPy. For univariate RVs it is the same as `shape`, but for multivariate RVs it depends on how the RV implements broadcasting to dimensionality greater than `RVOp.ndim_supp`.
1216
- Add `logcdf` method to Kumaraswamy distribution (see [#4706](https://github.com/pymc-devs/pymc3/pull/4706)).
1317
- ...
1418

0 commit comments

Comments
 (0)