Skip to content

Commit

Permalink
Merge pull request #2 from ReactiveBayes/chisq-domain
Browse files Browse the repository at this point in the history
Chisq domain is wrong
  • Loading branch information
bvdmitri authored Jun 17, 2024
2 parents eb880d7 + 1b955ec commit 0338617
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"

[compat]
BayesBase = "1.3"
ExponentialFamily = "1.4"
ExponentialFamily = "1.4.3"
LinearAlgebra = "1.10"
Manifolds = "0.9"
ManifoldsBase = "0.15"
Expand Down
2 changes: 1 addition & 1 deletion src/natural_manifolds/chisq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Get the natural manifold base for the `Chisq` distribution.
"""
function get_natural_manifold_base(::Type{Chisq}, ::Tuple{}, conditioner=nothing)
return ShiftedPositiveNumbers(static(-1//2))
return ShiftedPositiveNumbers(static(-1))
end

"""
Expand Down
2 changes: 1 addition & 1 deletion test/natural_manifolds/chisq_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
include("natural_manifolds_setuptests.jl")

test_natural_manifold() do rng
return Chisq(1 + 10rand(rng))
return Chisq(10rand(rng))
end
end

0 comments on commit 0338617

Please sign in to comment.