Adding target reward and target sucess (#58)
* Adding target reward * Adding target successs * Addressing comments * Using custom_reward_threshold and target_success_rate * Adding exit message * Moving success rate to environment * Making target_success_rate optional
This commit is contained in:
1 parent
0fe583186e
commit
875d6ef017
17 files changed
+162
-74
No files matched your search
@@ -56,6 +56,10 @@ agent_params.exploration.epsilon_schedule = LinearSchedule(1.0, 0.01, 10000)
|
||||
# Environment #
|
||||
###############
|
||||
env_params = GymVectorEnvironment(level='CartPole-v0')
|
||||
env_params.custom_reward_threshold = 200
|
||||
# Set the target success
|
||||
env_params.target_success_rate = 1.0
|
||||
|
||||
|
||||
########
|
||||
# Test #
|
||||
|
||||
Reference in new issue
Block a user