Added max boost print to tag_clustering task

parent 3953e4bc
......@@ -138,6 +138,7 @@ namespace :tag do
end
def merge(search_los, relevant_los)
puts "\n---------------------- MERGING -----------------------"
merged_los = []
max = search_los.first.search_hit['_score']
......@@ -158,7 +159,7 @@ namespace :tag do
max = relevant_los.first[1]
min = relevant_los.last[1]
puts "\nMax boost found: "+max_boost.to_s
relevant_los.each do |rlo|
rlo[1] = max_boost*(rlo[1]*(1+$PADM)-min)/(max-min)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment