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
languages
CNNTrainLang
Commits
00c9d6c3
Commit
00c9d6c3
authored
Oct 09, 2019
by
Sebastian Nickels
Browse files
Added BLEU as eval metric
parent
5555a601
Pipeline
#192287
passed with stages
in 9 minutes and 16 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
00c9d6c3
...
...
@@ -18,7 +18,7 @@
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
cnn-train
</artifactId>
<version>
0.3.
7
-SNAPSHOT
</version>
<version>
0.3.
8
-SNAPSHOT
</version>
<!-- == PROJECT DEPENDENCIES ============================================= -->
...
...
src/main/grammars/de/monticore/lang/monticar/CNNTrain.mc4
View file @
00c9d6c3
...
...
@@ -36,6 +36,7 @@ grammar CNNTrain extends de.monticore.lang.monticar.Common2, de.monticore.Number
LossWeightsEntry
implements
ConfigEntry
=
name
:
"loss_weights"
":"
value
:
DoubleVectorValue
;
EvalMetricValue
implements
ConfigValue
=(
accuracy
:
"accuracy"
|
bleu
:
"bleu"
|
crossEntropy
:
"cross_entropy"
|
f1
:
"f1"
|
mae
:
"mae"
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_symboltable/EvalMetric.java
View file @
00c9d6c3
...
...
@@ -14,6 +14,12 @@ public enum EvalMetric {
return
"accuracy"
;
}
},
BLEU
{
@Override
public
String
toString
()
{
return
"bleu"
;
}
},
CROSS_ENTROPY
{
@Override
public
String
toString
()
{
...
...
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