From f842b443ade952c5f510382fd90f1d975703251f Mon Sep 17 00:00:00 2001
From: Erik Nygren <baerenjesus@gmail.com>
Date: Tue, 9 Jun 2020 15:17:05 +0000
Subject: [PATCH] Update render_agent_behavior.py

---
 torch_training/render_agent_behavior.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/torch_training/render_agent_behavior.py b/torch_training/render_agent_behavior.py
index bfe5ba0..669f1c0 100644
--- a/torch_training/render_agent_behavior.py
+++ b/torch_training/render_agent_behavior.py
@@ -38,7 +38,7 @@ min_dist = 5
 observation_builder = TreeObsForRailEnv(max_depth=2)
 
 # Use a the malfunction generator to break agents from time to time
-stochastic_data = MalfunctionParameters(malfunction_rate=10000,  # Rate of malfunction occurence
+stochastic_data = MalfunctionParameters(malfunction_rate=1./10000,  # Rate of malfunction occurence
                                         min_duration=15,  # Minimal duration of malfunction
                                         max_duration=50  # Max duration of malfunction
                                         )
-- 
GitLab