From 8855d37cef610b39f37d2b3b331046d1e7040a37 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Fleuret?= Date: Sun, 24 Mar 2024 11:43:04 +0100 Subject: [PATCH] Update. --- escape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/escape.py b/escape.py index fc4fbbc..f945172 100755 --- a/escape.py +++ b/escape.py @@ -244,8 +244,8 @@ def episodes2str( ###################################################################### if __name__ == "__main__": - nb, height, width, T = 8, 4, 6, 20 + nb, height, width, T = 10, 4, 6, 20 states, actions, rewards = generate_episodes(nb, height, width, T) - seq = episodes2seq(states, actions, rewards, lookahead_delta=5) + seq = episodes2seq(states, actions, rewards, lookahead_delta=T) s, a, r, lr = seq2episodes(seq, height, width, lookahead=True) print(episodes2str(s, a, r, lookahead_rewards=lr, unicode=True, ansi_colors=True)) -- 2.39.5