Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PortalMEC
portalmec
Commits
5318783d
Commit
5318783d
authored
Jul 06, 2017
by
Israel Barreto Sant'Anna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added max boost print to tag_clustering task
parent
3953e4bc
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
lib/tasks/tag_clustering.rake
lib/tasks/tag_clustering.rake
+2
-1
No files found.
lib/tasks/tag_clustering.rake
View file @
5318783d
...
...
@@ -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
"
\n
Max boost found: "
+
max_boost
.
to_s
relevant_los
.
each
do
|
rlo
|
rlo
[
1
]
=
max_boost
*
(
rlo
[
1
]
*
(
1
+
$PADM
)
-
min
)
/
(
max
-
min
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment