Skip to content

Commit

Permalink
f32 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dinarior committed Feb 23, 2021
1 parent 3770c39 commit 38f2fb7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DPMMSubClusters"
uuid = "2841fd70-8698-11e9-176d-6dfa142d2ee7"
authors = ["Or Dinari <[email protected]>"]
version = "0.1.10"
version = "0.1.11"

[deps]
Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5"
Expand Down
5 changes: 0 additions & 5 deletions src/priors/niw.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ function calc_posterior(prior:: niw_hyperparams, suff_statistics::niw_sufficient
ψ = (prior.ν * prior.ψ + prior.κ*prior.m*prior.m' -κ*m*m'+ suff_statistics.S) / ν
ψ = Matrix(Symmetric(ψ))
ψ =+ψ')/2
if isposdef*ψ) == false
println(eigvals(suff_statistics.S))
println(extrema(suff_statistics.S))
println(isposdef(suff_statistics.S))
end
return niw_hyperparams(κ,m,ν,ψ)
end

Expand Down

0 comments on commit 38f2fb7

Please sign in to comment.