diff --git a/Project.toml b/Project.toml index 6f6baa9..1813c79 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DPMMSubClusters" uuid = "2841fd70-8698-11e9-176d-6dfa142d2ee7" authors = ["Or Dinari "] -version = "0.1.10" +version = "0.1.11" [deps] Clustering = "aaaa29a8-35af-508c-8bc3-b662a17a0fe5" diff --git a/src/priors/niw.jl b/src/priors/niw.jl index 9839523..c6bb85c 100644 --- a/src/priors/niw.jl +++ b/src/priors/niw.jl @@ -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