Commit 73e80dc0 authored by Nicola Gatto's avatar Nicola Gatto
Browse files

Add invalid test case for td3

parent cdc5657a
......@@ -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()),
......
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment