You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/CI.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ jobs:
17
17
fail-fast: false
18
18
matrix:
19
19
version:
20
-
- '1.0'# Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
20
+
- '1.6'# Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
21
21
- '1'# Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
22
22
# - 'nightly' # NOTE: nightly disabled as it currently fails
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,12 @@ A common framework for implementing and using log densities for inference, provi
13
13
14
14
2. The [`ADgradient`](https://tamaspapp.eu/LogDensityProblems.jl/dev/#LogDensityProblems.ADgradient) which makes objects that support `logdensity` to calculate log density *values* calculate log density *gradients* using various automatic differentiation packages.
15
15
16
-
3.The wrapper [`TransformedLogDensity`](https://tamaspapp.eu/LogDensityProblems.jl/dev/#LogDensityProblems.TransformedLogDensity) using the [TransformVariables.jl](https://github.com/tpapp/TransformVariables.jl) package, allowing callables that take a set of parameters transformed from a flat vector of real numbers to support the `logdensity` interface.
16
+
3.Various utility functions for debugging and testing log densities.
17
17
18
-
4. Various utility functions for debugging and testing log densities.
18
+
**NOTE** As of version 1.0, transformed log densities have been moved to [TransformedLogDensities.jl](https://github.com/tpapp/TransformedLogDensities.jl). Existing code that uses `TransformedLogDensity` should add
19
+
```
20
+
using TransformedLogDensities
21
+
```
22
+
or equivalent.
19
23
20
24
See the [documentation](https://tpapp.github.io/LogDensityProblems.jl/dev) for details.
Copy file name to clipboardExpand all lines: docs/src/index.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,8 +87,11 @@ problem((μ = 0.0, σ = 1.0))
87
87
88
88
In our example, we require ``\sigma > 0``, otherwise the problem is meaningless. However, many MCMC samplers prefer to operate on *unconstrained* spaces ``\mathbb{R}^n``. The TransformVariables package was written to transform unconstrained to constrained spaces, and help with the log Jacobian correction (more on that later). That package has detailed documentation, now we just define a transformation from a length 2 vector to a `NamedTuple` with fields `μ` (unconstrained) and `σ > 0`.
89
89
90
+
!!! note
91
+
Since version 1.0, TransformedLogDensity has been moved to the package TransformedLogDensities.
92
+
90
93
```@repl 1
91
-
using LogDensityProblems, TransformVariables
94
+
using LogDensityProblems, TransformVariables, TransformedLogDensities
Before running time-consuming algorithms like MCMC, it is advisable to test and benchmark your log density evaluations separately. The same applies to [`LogDensityProblems.logdensity_and_gradient`](@ref).
103
106
104
-
```@docs
105
-
TransformedLogDensity
106
-
```
107
-
108
107
## Manual unpacking and transformation
109
108
110
-
If you prefer to implement the transformation yourself, you just have to define the following three methods for your problem: declare that it can evaluate log densities (but not their gradient, hence the `0` order), allow the dimension of the problem to be queried, and then finally code the density calculation with the transformation. (Note that using [`TransformedLogDensity`](@ref) takes care of all of these for you, as shown above).
109
+
If you prefer to implement the transformation yourself, you just have to define the following three methods for your problem: declare that it can evaluate log densities (but not their gradient, hence the `0` order), allow the dimension of the problem to be queried, and then finally code the density calculation with the transformation. (Note that using `TransformedLogDensities.TransformedLogDensity` takes care of all of these for you, as shown above).
111
110
112
111
```@example 1
113
112
function LogDensityProblems.capabilities(::Type{<:NormalPosterior})
0 commit comments