From 268572e49afc2f05ebed76b595e9bb0d3ad19402 Mon Sep 17 00:00:00 2001 From: jw2249a Date: Tue, 21 May 2024 18:34:10 +0000 Subject: [PATCH] coercing bayes factors to correct Float type --- src/term_frequency_adjustment.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/term_frequency_adjustment.jl b/src/term_frequency_adjustment.jl index d6f61c5..39f1a65 100644 --- a/src/term_frequency_adjustment.jl +++ b/src/term_frequency_adjustment.jl @@ -34,12 +34,12 @@ function generate_tf_skeleton(EMOutput::Dict{String,Any}, tf_indices::Vector{Vec prior = log2(EMOutput["p_m"]/EMOutput["p_u"]) if isempty(colindices) Dict("tf_adjustment_weight" => [0.0], - "final_weight" => [prior + Float64(patterns_w.weights)], - "final_zetaj" => [bf_to_probability(prior + Float64(patterns_w.weights))], - "ismatch" => bf_to_probability(prior + Float64(patterns_w.weights)) >= EMOutput["threshold_match"], + "final_weight" => [Float64(prior + patterns_w.weights)], + "final_zetaj" => [bf_to_probability(Float64(prior + patterns_w.weights))], + "ismatch" => bf_to_probability(Float64(prior + patterns_w.weights)) >= EMOutput["threshold_match"], "tf_adjusted" => false) else - generate_pattern_level_structure(count, varnames[colindices], prior + Float64(patterns_w.weights)) + generate_pattern_level_structure(count, varnames[colindices], Float64(prior + patterns_w.weights)) end end end