Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid using deprecated MvNormal constructor #279

Closed
rikhuijzer opened this issue Sep 15, 2021 · 0 comments
Closed

Avoid using deprecated MvNormal constructor #279

rikhuijzer opened this issue Sep 15, 2021 · 0 comments

Comments

@rikhuijzer
Copy link
Contributor

rikhuijzer commented Sep 15, 2021

Currently, multiple tutorials use a deprecated MvNormal constructor (deprecated in JuliaStats/Distributions.jl#1362).

julia> using Distributions

julia> MvNormal([1], 1.0) # Old constructor.
┌ Warning: `MvNormal(μ::AbstractVector{<:Real}, σ::Real)` is deprecated, use `MvNormal(μ, σ ^ 2 * I)` instead.
│   caller = ip:0x0
└ @ Core :-1
IsoNormal(
dim: 1
μ: [1.0]
Σ: [1.0]
)

julia> I = Distributions.I;

julia> MvNormal([1], 1.0^2 * I) # New constructor.
IsoNormal(
dim: 1
μ: [1.0]
Σ: [1.0]
)

The usage of the old constructor has to be removed in the following tutorials:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants