From 7a6590debe062a260f979efd3c52aaa9d79c21ea Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 14 Oct 2022 21:41:45 +0530 Subject: [PATCH] fixed error in pointestimate --- src/pointestimate.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pointestimate.jl b/src/pointestimate.jl index 2e0b5c8..3c9e185 100644 --- a/src/pointestimate.jl +++ b/src/pointestimate.jl @@ -23,7 +23,7 @@ If `method` is either `"MAP"`, `"MLE"`, or `"MPEL"`, returns a tuple `(clust, i) function getpointestimate(samples::MCMCResult; method::String= "MAP", loss::Union{String, Function} = "VI") # input validation if method == "SALSO" || method == "MPEL" - if loss ∉ ["binder", "omARI", "VI", "NVI", "ID", "NID"] + if loss ∉ ["binder", "omARI", "VI", "ID"] throw(ArgumentError("Invalid loss function specifier.")) end end