Skip to content

Commit 92f6eea

Browse files
authored
Improve returned() documentation (#966)
* Improve returned() documentation * Bump patch * Fix typo
1 parent 968c879 commit 92f6eea

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# DynamicPPL Changelog
22

3+
## 0.36.13
4+
5+
Added documentation for the `returned(::Model, ::MCMCChains.Chains)` method.
6+
37
## 0.36.12
48

59
Removed several unexported functions.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.36.12"
3+
version = "0.36.13"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

docs/src/api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ It is possible to manually increase (or decrease) the accumulated log density fr
166166
@addlogprob!
167167
```
168168

169-
Return values of the model function for a collection of samples can be obtained with [`returned(model, chain)`](@ref).
169+
Return values of the model function can be obtained with [`returned(model, sample)`](@ref), where `sample` is either a `MCMCChains.Chains` object (which represents a collection of samples) or a single sample represented as a `NamedTuple`.
170170

171171
```@docs
172+
returned(::DynamicPPL.Model, ::MCMCChains.Chains)
172173
returned(::DynamicPPL.Model, ::NamedTuple)
173174
```
174175

0 commit comments

Comments
 (0)