Skip to content

Commit

Permalink
Adjusting term frequency var name
Browse files Browse the repository at this point in the history
  • Loading branch information
jw2249a committed Mar 25, 2024
1 parent 9aacf70 commit 1f8bec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getMatches.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ end
# applies term frequency adjustments to table
function tf_adj_table(resultsEM::NamedTuple,varnames::Vector{String},tf_table_x::Vector{Vector{Float16}},tf_table_y::Vector{Vector{Float16}})
tf_vec = [DataFrame() for _ in eachindex(resultsEM.indices)]
new_names=vcat(varnames .* "_x", varnames .* "_y")
new_names=vcat("tf_" .* varnames .* "_x", "tf_" .* varnames .* "_y")
for i in eachindex(resultsEM.indices)
result_len=length(resultsEM.indices[i])
tf_results=DataFrame(ones(Float16,(result_len, 2*length(varnames))),new_names)
Expand Down

0 comments on commit 1f8bec9

Please sign in to comment.