Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
CNNArch2Gluon
Commits
a3932b0d
Commit
a3932b0d
authored
Nov 12, 2019
by
Christian Fuß
Browse files
fixed small bug in bleu computation
parent
375b84d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/templates/gluon/CNNSupervisedTrainer.ftl
View file @
a3932b0d
...
...
@@ -116,7 +116,8 @@ class BLEU(mx.metric.EvalMetric):
i
*
= 2
match_counts = 1 / i
precisions[n] = match_counts / counts
if (match_counts / counts) > 0:
precisions[n] = match_counts / counts
bleu = self._get_brevity_penalty()
*
math.exp(sum(map(math.log, precisions)) / self.N)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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