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
e32e7c81
Commit
e32e7c81
authored
Sep 25, 2019
by
Julian Johannes Steinsberger-Dührßen
Committed by
Evgeny Kusmenko
Sep 25, 2019
Browse files
Tensorflow group
parent
33398aa9
Changes
76
Hide whitespace changes
Inline
Side-by-side
.circleci/config.yml
View file @
e32e7c81
#
# (c) https://github.com/MontiCore/monticore
#
# The license generally applicable for this project
# can be found under https://github.com/MontiCore/monticore.
#
# (c) https://github.com/MontiCore/monticore
#
...
...
.gitlab-ci.yml
View file @
e32e7c81
#
# (c) https://github.com/MontiCore/monticore
#
# The license generally applicable for this project
# can be found under https://github.com/MontiCore/monticore.
#
# (c) https://github.com/MontiCore/monticore
stages
:
...
...
pom.xml
View file @
e32e7c81
<!--
(c) https://github.com/MontiCore/monticore
The license generally applicable for this project
can be found under https://github.com/MontiCore/monticore.
-->
<!-- (c) https://github.com/MontiCore/monticore -->
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
...
...
settings.xml
View file @
e32e7c81
<?xml version="1.0" encoding="UTF-8"?>
<!--
(c) https://github.com/MontiCore/monticore
The license generally applicable for this project
can be found under https://github.com/MontiCore/monticore.
-->
<!-- (c) https://github.com/MontiCore/monticore -->
...
...
src/main/grammars/de/monticore/lang/monticar/CNNTrain.mc4
View file @
e32e7c81
...
...
@@ -33,7 +33,8 @@ grammar CNNTrain extends de.monticore.lang.monticar.Common2, de.monticore.Number
TrainContextEntry
implements
ConfigEntry
=
name
:
"context"
":"
value
:
TrainContextValue
;
EvalMetricEntry
implements
ConfigEntry
=
name
:
"eval_metric"
":"
value
:
EvalMetricValue
;
LossEntry
implements
ConfigEntry
=
name
:
"loss"
":"
value
:
LossValue
;
LossWeightsEntry
implements
ConfigEntry
=
name
:
"loss_weights"
":"
value
:
DoubleVectorValue
;
EvalMetricValue
implements
ConfigValue
=(
accuracy
:
"accuracy"
|
crossEntropy
:
"cross_entropy"
|
f1
:
"f1"
...
...
@@ -58,6 +59,8 @@ grammar CNNTrain extends de.monticore.lang.monticar.Common2, de.monticore.Number
L2Loss
implements
LossValue
=
name
:
"l2"
(
"{"
params
:
Entry
*
"}"
)?;
EPELoss
implements
LossValue
=
name
:
"epe"
(
"{"
params
:
Entry
*
"}"
)?;
LogCoshLoss
implements
LossValue
=
name
:
"log_cosh"
(
"{"
params
:
Entry
*
"}"
)?;
interface
HuberEntry
extends
Entry
;
...
...
@@ -126,7 +129,7 @@ grammar CNNTrain extends de.monticore.lang.monticar.Common2, de.monticore.Number
Gamma2Entry
implements
RmsPropEntry
=
name
:
"gamma2"
":"
value
:
NumberValue
;
CenteredEntry
implements
RmsPropEntry
=
name
:
"centered"
":"
value
:
BooleanValue
;
ClipWeightsEntry
implements
RmsPropEntry
=
name
:
"clip_weights"
":"
value
:
NumberValue
;
RhoEntry
implements
AdaDeltaEntry
,
HuberEntry
=
name
:
"rho"
":"
value
:
NumberValue
;
RhoEntry
implements
AdaDeltaEntry
,
RmsPropEntry
,
HuberEntry
=
name
:
"rho"
":"
value
:
NumberValue
;
//
Reinforcement
Extensions
interface
MultiParamValue
extends
ConfigValue
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_ast/ASTLossValue.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._ast
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_ast/ASTMultiParamValue.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._ast
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_ast/ASTOptimizerValue.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._ast
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/ASTConfigurationUtils.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CNNTrainCocos.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
@@ -43,4 +49,4 @@ public class CNNTrainCocos {
.
addCoCo
(
new
CheckCriticNetworkInputs
());
checker
.
checkAll
(
configurationSymbol
);
}
}
}
\ No newline at end of file
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CNNTrainConfigurationSymbolChecker.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
@@ -22,4 +28,4 @@ public class CNNTrainConfigurationSymbolChecker {
coco
.
check
(
configurationSymbol
);
}
}
}
}
\ No newline at end of file
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CNNTrainConfigurationSymbolCoCo.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
@@ -8,4 +14,4 @@ import de.monticore.lang.monticar.cnntrain._symboltable.ConfigurationSymbol;
*/
public
interface
CNNTrainConfigurationSymbolCoCo
{
void
check
(
ConfigurationSymbol
configurationSymbol
);
}
}
\ No newline at end of file
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CNNTrainConfigurationSymbolCoCo.java~Integrate TD3 Algorithm and Gaussian Noise
0 → 100644
View file @
e32e7c81
/**
*
*
******************************************************************************
*
MontiCAR
Modeling
Family
,
www
.
se
-
rwth
.
de
*
Copyright
(
c
)
2017
,
Software
Engineering
Group
at
RWTH
Aachen
,
*
All
rights
reserved
.
*
*
This
project
is
free
software
;
you
can
redistribute
it
and
/
or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
;
either
*
version
3.0
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
;
without
even
the
implied
warranty
of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
project
.
If
not
,
see
<
http
://
www
.
gnu
.
org
/
licenses
/>.
*
*******************************************************************************
*/
package
de
.
monticore
.
lang
.
monticar
.
cnntrain
.
_cocos
;
import
de
.
monticore
.
lang
.
monticar
.
cnntrain
.
_symboltable
.
ConfigurationSymbol
;
/**
*
*/
public
interface
CNNTrainConfigurationSymbolCoCo
{
void
check
(
ConfigurationSymbol
configurationSymbol
);
}
\ No newline at end of file
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CNNTrainConfigurationSymbolCoCo.java~e19e3385152e0d44db9cd13f93428bb407f56cce
0 → 100644
View file @
e32e7c81
/**
*
*
******************************************************************************
*
MontiCAR
Modeling
Family
,
www
.
se
-
rwth
.
de
*
Copyright
(
c
)
2017
,
Software
Engineering
Group
at
RWTH
Aachen
,
*
All
rights
reserved
.
*
*
This
project
is
free
software
;
you
can
redistribute
it
and
/
or
*
modify
it
under
the
terms
of
the
GNU
Lesser
General
Public
*
License
as
published
by
the
Free
Software
Foundation
;
either
*
version
3.0
of
the
License
,
or
(
at
your
option
)
any
later
version
.
*
This
library
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
;
without
even
the
implied
warranty
of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
GNU
*
Lesser
General
Public
License
for
more
details
.
*
*
You
should
have
received
a
copy
of
the
GNU
Lesser
General
Public
*
License
along
with
this
project
.
If
not
,
see
<
http
://
www
.
gnu
.
org
/
licenses
/>.
*
*******************************************************************************
*/
package
de
.
monticore
.
lang
.
monticar
.
cnntrain
.
_cocos
;
import
de
.
monticore
.
lang
.
monticar
.
cnntrain
.
_symboltable
.
ConfigurationSymbol
;
/**
*
*/
public
interface
CNNTrainConfigurationSymbolCoCo
{
void
check
(
ConfigurationSymbol
configurationSymbol
);
}
\ No newline at end of file
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CheckActorCriticRequiresCriticNetwork.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CheckContinuousRLAlgorithmUsesContinuousStrategy.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CheckCriticNetworkHasExactlyAOneDimensionalOutput.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CheckCriticNetworkInputs.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
@@ -96,4 +102,4 @@ public class CheckCriticNetworkInputs implements CNNTrainConfigurationSymbolCoCo
}
}
}
}
}
\ No newline at end of file
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CheckDiscreteRLAlgorithmUsesDiscreteStrategy.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
src/main/java/de/monticore/lang/monticar/cnntrain/_cocos/CheckEntryRepetition.java
View file @
e32e7c81
/**
* (c) https://github.com/MontiCore/monticore
*
* The license generally applicable for this project
* can be found under https://github.com/MontiCore/monticore.
*/
/* (c) https://github.com/MontiCore/monticore */
package
de.monticore.lang.monticar.cnntrain._cocos
;
...
...
Prev
1
2
3
4
Next
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