From 06d7da0f6b835d8449a1f7f2374c6c9d12ab0054 Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 12 Feb 2024 15:31:56 -0800 Subject: [PATCH] =?UTF-8?q?fixed=20the=20error=20message=20for=20a=20too?= =?UTF-8?q?=20short=20record-period=20when=20online=20lea=E2=80=A6=20(#23)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: The error message had two small mistakes, the F-String was missing and the message itself was wrong. Pull Request resolved: https://github.com/facebookresearch/Pearl/pull/23 Reviewed By: xuruiyang Differential Revision: D53600784 Pulled By: rodrigodesalvobraz fbshipit-source-id: 6c1e39d5881bde1c98b56d15f566d24eea25397b --- .gitignore | 2 ++ .../utils/functional_utils/train_and_eval/online_learning.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..efc3981d --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Pearl.egg-info/ +build/ diff --git a/pearl/utils/functional_utils/train_and_eval/online_learning.py b/pearl/utils/functional_utils/train_and_eval/online_learning.py index 993fdbd7..440406bc 100644 --- a/pearl/utils/functional_utils/train_and_eval/online_learning.py +++ b/pearl/utils/functional_utils/train_and_eval/online_learning.py @@ -115,8 +115,8 @@ def online_learning( ) if number_of_steps is not None and episode_total_steps > record_period: print( - f"An episode is longer than the report_period: episode length {episode_total_steps}" - ", record_period {record_period}. Try using a smaller record_period." + f"An episode is longer than the record_period: episode length {episode_total_steps}" + f", record_period {record_period}. Try using a larger record_period." ) exit(1) total_steps += episode_total_steps