Project 'rfhf19/cleanning-portalmec' was moved to 'rfhferreira/cleanning-portalmec'. Please update any links and bookmarks that may still have the old path.
Commit 5318783d authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Added max boost print to tag_clustering task

Showing with 2 additions and 1 deletion
+2 -1
......@@ -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