Skip to content

Commit

Permalink
coercing bayes factors to correct Float type
Browse files Browse the repository at this point in the history
  • Loading branch information
jw2249a committed May 21, 2024
1 parent 80581da commit 268572e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/term_frequency_adjustment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 268572e

Please sign in to comment.