Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
languages
CNNTrainLang
Commits
73e80dc0
Commit
73e80dc0
authored
Jul 09, 2019
by
Nicola Gatto
Browse files
Add invalid test case for td3
parent
cdc5657a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/test/java/de/monticore/lang/monticar/cnntrain/cocos/AllCoCoTest.java
View file @
73e80dc0
...
...
@@ -169,6 +169,13 @@ public class AllCoCoTest extends AbstractCoCoTest{
new
ExpectedErrorInfo
(
1
,
ErrorCodes
.
UNSUPPORTED_PARAMETER
));
}
@Test
public
void
testInvalidCheckRLAlgorithmParameter4
()
{
checkInvalid
(
new
CNNTrainCoCoChecker
().
addCoCo
(
new
CheckRlAlgorithmParameter
()),
"invalid_cocos_tests"
,
"CheckRLAlgorithmParameter4"
,
new
ExpectedErrorInfo
(
1
,
ErrorCodes
.
UNSUPPORTED_PARAMETER
));
}
@Test
public
void
testInvalidCheckDiscreteRLAlgorithmUsesDiscreteStrategy
()
{
checkInvalid
(
new
CNNTrainCoCoChecker
().
addCoCo
(
new
CheckDiscreteRLAlgorithmUsesDiscreteStrategy
()),
...
...
src/test/resources/invalid_cocos_tests/CheckRLAlgorithmParameter4.cnnt
0 → 100644
View file @
73e80dc0
configuration CheckRLAlgorithmParameter4 {
learning_method : reinforcement
rl_algorithm: td3-algorithm
agent_name : "reinforcement-agent"
environment : gym { name:"CartPole-v1" }
context : cpu
num_episodes : 300
num_max_steps : 9999
discount_factor : 0.998
target_score : 1000
training_interval : 10
use_double_dqn: true
}
\ No newline at end of file
Write
Preview
Supports
Markdown
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