You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

523 lines
263 KiB

2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "markdown",
  5. "metadata": {},
  6. "source": [
  7. "## Example usage of Tempestpy"
  8. ]
  9. },
  10. {
  11. "cell_type": "code",
  12. "execution_count": 1,
  13. "metadata": {
  14. "vscode": {
  15. "languageId": "plaintext"
  16. }
  17. },
  18. "outputs": [
  19. {
  20. "name": "stdout",
  21. "output_type": "stream",
  22. "text": [
  23. "pygame 2.6.0 (SDL 2.28.4, Python 3.10.12)\n",
  24. "Hello from the pygame community. https://www.pygame.org/contribute.html\n"
  25. ]
  26. },
  27. {
  28. "name": "stderr",
  29. "output_type": "stream",
  30. "text": [
  31. "2024-09-24 12:42:32.571249: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:485] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered\n",
  32. "2024-09-24 12:42:32.588338: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:8454] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
  33. "2024-09-24 12:42:32.593115: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1452] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n",
  34. "2024-09-24 12:42:32.603726: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.\n",
  35. "To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.\n",
  36. "2024-09-24 12:42:33.541399: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT\n",
  37. "error: XDG_RUNTIME_DIR not set in the environment.\n"
  38. ]
  39. }
  40. ],
  41. "source": [
  42. "from sb3_contrib import MaskablePPO\n",
  43. "from sb3_contrib.common.wrappers import ActionMasker\n",
  44. "from stable_baselines3.common.logger import Logger, CSVOutputFormat, TensorBoardOutputFormat, HumanOutputFormat\n",
  45. "\n",
  46. "import gymnasium as gym\n",
  47. "\n",
  48. "from minigrid.core.actions import Actions\n",
  49. "from minigrid.core.constants import TILE_PIXELS\n",
  50. "from minigrid.wrappers import RGBImgObsWrapper, ImgObsWrapper\n",
  51. "\n",
  52. "import tempfile, datetime, shutil\n",
  53. "\n",
  54. "import time\n",
  55. "import os\n",
  56. "\n",
  57. "from utils import MiniGridShieldHandler, create_log_dir, ShieldingConfig, MiniWrapper, expname, shield_needed, shielded_evaluation, create_shield_overlay_image\n",
  58. "from sb3utils import MiniGridSbShieldingWrapper, parse_sb3_arguments, ImageRecorderCallback, InfoCallback\n",
  59. "\n",
  60. "import os, sys\n",
  61. "from copy import deepcopy\n",
  62. "\n",
  63. "from PIL import Image"
  64. ]
  65. },
  66. {
  67. "cell_type": "code",
  68. "execution_count": 3,
  69. "metadata": {
  70. "vscode": {
  71. "languageId": "plaintext"
  72. }
  73. },
  74. "outputs": [
  75. {
  76. "name": "stdout",
  77. "output_type": "stream",
  78. "text": [
  79. "Starting the training\n"
  80. ]
  81. },
  82. {
  83. "data": {
  84. "image/jpeg": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAGgAgADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDDooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigDzLVNU1CPV71Ev7pUWdwqrMwAG48Dmqn9r6n/ANBG7/7/ALf40av/AMhq/wD+viT/ANCNU6ALn9r6n/0Ebv8A7/t/jR/a+p/9BG7/AO/7f41TooA19U1TUI9XvUS/ulRZ3CqszAAbjwOaqf2vqf8A0Ebv/v8At/jRq/8AyGr/AP6+JP8A0I1ToAuf2vqf/QRu/wDv+3+NH9r6n/0Ebv8A7/t/jVOigD6XorA1GwuJ9Ukn0nWjBfoi+ZayMJImXtuTqufUVTltPEWpox1a/g0mxQfvBZv88gHU7z90f5NfnscPGST50vvv93X5fgfdSryTa5W/ut9/T5/idXRXKRWniLTEU6TfwatYuP3YvH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tt9+2v3f96lP0l/wFGPnn3efg3kPrrTopJgxTGhP6IET51M4PPU/lEXyMfCVziVRCLfhIv/j+AZJC6u+3
  86. "text/plain": [
  87. "<PIL.Image.Image image mode=RGB size=512x416>"
  88. ]
  89. },
  90. "metadata": {},
  91. "output_type": "display_data"
  92. },
  93. {
  94. "name": "stdout",
  95. "output_type": "stream",
  96. "text": [
  97. "\n",
  98. "\n",
  99. "Computing new shield\n",
  100. "LOG: Starting with explicit model creation...\n",
  101. "Elapsed time is 0.08019781112670898 seconds.\n",
  102. "LOG: Starting with model checking...\n",
  103. "Elapsed time is 0.0008318424224853516 seconds.\n",
  104. "LOG: Starting to translate shield...\n",
  105. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  106. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  107. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  108. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  109. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  110. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  111. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  112. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  113. "Elapsed time is 0.022951364517211914 seconds.\n",
  114. "\n",
  115. "\n",
  116. "Computing new shield\n",
  117. "LOG: Starting with explicit model creation...\n",
  118. "Elapsed time is 0.0903787612915039 seconds.\n",
  119. "LOG: Starting with model checking...\n",
  120. "Elapsed time is 0.0008656978607177734 seconds.\n",
  121. "LOG: Starting to translate shield...\n",
  122. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  123. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  124. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  125. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  126. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  127. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  128. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  129. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  130. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  131. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  132. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  133. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  134. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  135. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  136. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  137. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  138. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  139. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  140. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  141. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  142. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  143. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  144. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  145. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  146. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  147. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  148. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  149. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  150. "Elapsed time is 0.0263826847076416 seconds.\n",
  151. "\n",
  152. "\n",
  153. "Computing new shield\n",
  154. "LOG: Starting with explicit model creation...\n",
  155. "Elapsed time is 0.11173772811889648 seconds.\n",
  156. "LOG: Starting with model checking...\n",
  157. "Elapsed time is 0.0016129016876220703 seconds.\n",
  158. "LOG: Starting to translate shield...\n",
  159. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  160. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  161. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  162. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  163. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  164. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  165. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  166. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  167. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  168. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  169. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  170. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  171. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  172. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  173. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  174. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  175. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  176. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  177. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  178. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  179. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  180. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  181. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  182. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  183. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  184. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  185. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  186. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  187. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 458\n",
  188. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 459\n",
  189. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 460\n",
  190. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 461\n",
  191. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 462\n",
  192. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 463\n",
  193. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 464\n",
  194. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 465\n",
  195. "Elapsed time is 0.03487586975097656 seconds.\n",
  196. "\n",
  197. "\n",
  198. "Computing new shield\n",
  199. "LOG: Starting with explicit model creation...\n",
  200. "Elapsed time is 0.1351919174194336 seconds.\n",
  201. "LOG: Starting with model checking...\n",
  202. "Elapsed time is 0.0011432170867919922 seconds.\n",
  203. "LOG: Starting to translate shield...\n",
  204. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 54\n",
  205. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 55\n",
  206. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 56\n",
  207. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 57\n",
  208. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 58\n",
  209. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 59\n",
  210. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 60\n",
  211. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 61\n",
  212. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 62\n",
  213. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 67\n",
  214. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 68\n",
  215. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 69\n",
  216. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 70\n",
  217. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 71\n",
  218. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 72\n",
  219. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 73\n",
  220. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 74\n",
  221. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 80\n",
  222. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 81\n",
  223. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 82\n",
  224. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 83\n",
  225. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 84\n",
  226. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 85\n",
  227. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 86\n",
  228. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 93\n",
  229. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 94\n",
  230. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 95\n",
  231. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 96\n",
  232. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for statElapsed time is 0.03844499588012695 seconds.\n",
  233. "e with index 97\n",
  234. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 98\n",
  235. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 106\n",
  236. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 107\n",
  237. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 108\n",
  238. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 109\n",
  239. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 110\n",
  240. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 315\n",
  241. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 316\n",
  242. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 317\n",
  243. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 318\n",
  244. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 319\n",
  245. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 320\n",
  246. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 321\n",
  247. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 322\n",
  248. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 323\n",
  249. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 329\n",
  250. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 330\n",
  251. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 331\n",
  252. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 332\n",
  253. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 333\n",
  254. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 334\n",
  255. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 335\n",
  256. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 336\n",
  257. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 343\n",
  258. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 344\n",
  259. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 345\n",
  260. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 346\n",
  261. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 347\n",
  262. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 348\n",
  263. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 349\n",
  264. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 357\n",
  265. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 358\n",
  266. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 359\n",
  267. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 360\n",
  268. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 361\n",
  269. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 362\n",
  270. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 371\n",
  271. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 372\n",
  272. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 373\n",
  273. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 374\n",
  274. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 375\n",
  275. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 444\n",
  276. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 445\n",
  277. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 446\n",
  278. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 447\n",
  279. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 448\n",
  280. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 449\n",
  281. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 450\n",
  282. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 451\n",
  283. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 452\n",
  284. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 453\n",
  285. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 457\n",
  286. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 458\n",
  287. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 459\n",
  288. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 460\n",
  289. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 461\n",
  290. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 462\n",
  291. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 463\n",
  292. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 464\n",
  293. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 465\n",
  294. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 466\n",
  295. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 470\n",
  296. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 471\n",
  297. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 472\n",
  298. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 473\n",
  299. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 474\n",
  300. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 475\n",
  301. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 476\n",
  302. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 477\n",
  303. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 478\n",
  304. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 479\n",
  305. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 483\n",
  306. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 484\n",
  307. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 485\n",
  308. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 486\n",
  309. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 487\n",
  310. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 488\n",
  311. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 489\n",
  312. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 490\n",
  313. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 491\n",
  314. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 492\n",
  315. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 496\n",
  316. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 497\n",
  317. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 498\n",
  318. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 499\n",
  319. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 500\n",
  320. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 501\n",
  321. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 502\n",
  322. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 503\n",
  323. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 504\n",
  324. " WARN (PreShield.cpp:50): No shielding action possible with absolute comparison for state with index 505\n"
  325. ]
  326. },
  327. {
  328. "data": {
  329. "image/png": "iVBOR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E/ZkaACxl/xUANPAMwFKDj5AvGQBQv+fPOT1LFgDYhZgj/qu/cA8EOidvM/7wgTT/YT3qIRD4iQsOmNEZ/6jjN6ZOuS2J/3kgIPwlf5vWP1N+t48FAl8saH+mBABL2n8FAJUHAEsOPnK/dAAAD3PCHIcpDADseswRh47fyto+DATIZxXhv/u/I8t5RsTeCwAsW/zPAwHhP/4mgOTv9NaI6VET+meN9fYWCPxX350yl5D/SwHA0vZfAUDFAcDSg49orxEAwGcoCBgKAKAhmSP+qw8mfpPe0WCI/9p9HrD3HMHdsbr4TyQAsILi3wUCwl/yF377wHQk3Denf2EH7NzZhaX1fywAWMP+KwCoNABYY/CR87UCAHjFgoBLAQB0s6WhIGAkAJiNNxWJfxxO4R/HZe5cyd90RJeQyQj+QwHAWvZ/7wFAla8BrjX407VhnpLF+7WEUqdAI/4paM1fVvjPj2lKja3gv1Q7J9Zb3E6mjGnjZasLALY++MX7N1EJF5Nr8V8M2kkVC/9JMC1WqHb8l27fhfqL28fFBr7OiqsKAPYy+MX7eUEJFxdV8V8c4lEGwn8UnsUv1or/Wu0a4FPcLi4+8PUxqCYA2NvgF+/vgBKuJqLivxrUUUbCPwrLapm14b92ewJ+xe3hagNfF6MqPgT0+UfuPyV3mn7xy8iTMTvFQt0WAkJgXwjwEGBJ+//Zs2fFAS/Z/9eL99414Pbu7lAqAlzzLYAQ63sy3glzdS4EhIAQ2A8CJe2/ew3scOf8T4mE/X/8+HEJ1q94VnML4OgMXzVr+wd76+/2R1Q
  330. "text/plain": [
  331. "<PIL.Image.Image image mode=RGBA size=512x416>"
  332. ]
  333. },
  334. "metadata": {},
  335. "output_type": "display_data"
  336. },
  337. {
  338. "name": "stdout",
  339. "output_type": "stream",
  340. "text": [
  341. "The shield for shield_value = 0.9\n"
  342. ]
  343. },
  344. {
  345. "data": {
  346. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABaUklEQVR4Ae29Pa8lR5rfeVhDUBiAoxmQ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Hb8xdcptSfzPAwHhL/lbtf6Z8rs8Fgh8saD9mRIALGn/FQBUHgAsOfjI/dIBADzMCbMfpjAAsPMxRxw6fqtreRgIUM4qwr/6fyPLeUZE7gUAViz+54GA8B9+E0Dyd3xrxPSoCf2zi/VyCwT++XfHwiXkfywAWNr+KwCoOABYevAR7WsEAPDpCwL6AgBoSOaI/+L9id+kdzQY4p+5zwOePEdwt28u/hMJAKyi+HeBgPCX/IXfPjAdCfPm9C/sgB07u7C0/g8FANew/woAKg0ArjH4yPm1AgB4xYKAsQAAutlSXxAwEADMxpuGxD8Op/CP4zJ3qeRvOqJLyGQE/74A4Fr2f+sBQJWvAV5r8Kdrwzw1i/drCaVOgUb8U9Cav67wnx/TlBZbwX+p65zYbnE7mTKmjdetLgBY++AX799EJVxMrsV/MWgnNSz8J8G0WKXa8V/6+kbaL24fFxv4OhuuKgDYyuAX7+eIEi4uquK/OMSDDIT/IDyLn6wV/2tdVw+f4nZx8YGvj0E1AcDWBr94f3uU8GoiKv5XgzrKSPhHYblaYW34X/t6An7F7eHVBr4uRlV8COjzJ+4/JTeafvrzyJMxG8VC3RYCQmBbCPAQYEn7/9nTp8UBL9n/V4v33l3A7d3drlQEeM23AEKs7yl4OyzVsRAQAkJgOwiUtP/uNbDdnfM/JRL2/+HDhyVYv+RZzS2AvTN8eVnr39laf9c
  347. "text/plain": [
  348. "<PIL.Image.Image image mode=RGBA size=512x416>"
  349. ]
  350. },
  351. "metadata": {},
  352. "output_type": "display_data"
  353. },
  354. {
  355. "name": "stdout",
  356. "output_type": "stream",
  357. "text": [
  358. "The shield for shield_value = 0.95\n"
  359. ]
  360. },
  361. {
  362. "data": {
  363. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABgIklEQVR4Ae19Ta8lt5neUbuhwIA8NiTgzhXQasULbSxvPBsdaZfNZNc7d/7AnR+g7p1+gJCNpGwSBPDNKjspq4YXnkkWXlnXm2iAsbIxME63NNBFGxI8cQODaYxHeZ/D897D4mFVkTysIln18IK3qlh8+RYfvl9kfZwXLi4uvt0wEQEiQASIABEgAqtC4NaqesvOEgEiQASIABEgAjsEGABQEIgAESACRIAIrBABBgArHHR2mQgQASJABIgAAwDKABEgAkSACBCBFSLAAGCFg84uEwEiQASIABFgAEAZIAJEgAgQASKwQgQYAKxw0NllIkAEiAARIAIMACgDRIAIEAEiQARWiAADgBUOOrtMBIgAESACRIABAGWACBABIkAEiMAKEWAAsMJBZ5eJABEgAkSACDAAoAwQASJABIgAEVghAgwAVjjo7DIRIAJEgAgQAQYAlAEiQASIABEgAitEgAHACgedXSYCRIAIEAEiwACAMkAEiAARIAJEYIUIMABY4aCzy0SACBABIkAEGABQBogAESACRIAIrBABBgArHHR2mQgQASJABIgAAwDKABEgAkSACBCBFSLAAGCFg84uEwEiQASIABFgAEAZIAJEgAgQASKwQgQYAKxw0NllIkAEiAARIAIMACgDRIAIEAEiQARWiAADgBUOOrtMBIgAESACRIABAGWACBABIkAEiMAKEWAAsMJBZ5eJABEgAkSACDAAoAwQASJABIgAEVghAgwAVjjo7DIRIAJEgAgQAQYAlAEiQASIABEgAitEgAHACgedXSYCRIAIEAEicLs0BO89elT6Eory/+GLTzebi4KXcCm8yb/cABB/yt+K9e93/+WsnO4J56c/FPtbMJ397mzz/r17xa6geACAnj99Wm4QLi8uNheXsMJl0g/vlOG741qu26bT5F9w8IU18Sf+QAByUCII2ctfSfu/+WFZESjNfdW3ALZ79HVbejBm5U/jPyvcR8yI/xEksxYQ/y7cc+MxN79ub3dHq7T7Dg6rDQDcwXePHZyWdVha+ci/rDwRf+LvQ2AuuZiLj6+P+7JV2fsBHFYZAPQNfl/5AH7tnSqtfORfVmaIP/EfQmBq+Zi6/aG+7c+tws4H4IAqqwsAxgZ/7HwgrnVWK6185F9WLog/8Q9BYCo5mardkD7t6yzavkfgoFVXFQCEDn5oPQWxiW1p5SP/smJC/Il/DAK55SV3ezF92dddpF1PwMEmWU0AEDv4sfVtUKvbL6185F9WJI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v8NaI6lET+qcXa201EPi3zw6FU8j/WAAwtf1nAFBxADD14EO05wgAwKcvCOgLAECDpI74p28GfpNeaGCIP5HPA3aeI7jcNef/5wkAtCL5m0CA+FP+3G8fqI642+b0z+2AHotdmFr/hwKAOew/A4BKA4A5Bh9yPlcAAF6+IGAsAABdttQXBAwEANl4oyHy98NJ/P245C6l/IUjOoVMevDvCwDmsv9rDwCqfA1wrsEP14Y8NYv3awqljoGG/GPQyl+X+OfHNKbFVvCf6joD2y1uJ2PGtPG61QUASx/84v0LVMLJ5Jr8J4M2qGHiHwTTZJVqx3/q6xtpv7h9nGzg62y4qgBgLYNfvJ8jSji5qJL/5BAPMiD+g/BMfrJW/Oe6rh4+xe3i5ANfH4NqAoC1DX7x/vYo4WwiSv6zQe1lRPy9sMxWWBv+c1+Pw6+4PZxt4OtiVMWHgN6/J78pudL0s194noxZKRbsNhEgAutCAA8BlrT/7z16VBzwkv2/Xbz3cgEXl5ebUhHgnG8BuFhfoeCOW8pjIkAEiMB6EChp/+U1sM2l+J8SCfb/7OysBOsbntXcAtg5w5vLWv7O2vq7/BFlD4kAEUhFYG32sJb+VhMAQHBqASV
  364. "text/plain": [
  365. "<PIL.Image.Image image mode=RGBA size=512x416>"
  366. ]
  367. },
  368. "metadata": {},
  369. "output_type": "display_data"
  370. },
  371. {
  372. "name": "stdout",
  373. "output_type": "stream",
  374. "text": [
  375. "The shield for shield_value = 0.99\n"
  376. ]
  377. },
  378. {
  379. "data": {
  380. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABstElEQVR4Ae29S69dx5UmeMQkVEhAWZmggOsrgCYrB5xYntgTHmnWk+wZBwVYv+D+AVIz/QChJxJ7Uo0G8vaoZ9KM8MDlqoFH4vGIBmzVRIDdpGTwggkJrpaAQgmZVq1vx1l3x46zHxGxHxGx9xcXceMdK+KLFWutHftxXru4uPhhR0cEiAARIAJEgAhsCoEbm5otJ0sEiAARIAJEgAhUCNAAICMQASJABIgAEdggAjQANrjonDIRIAJEgAgQARoA5AEiQASIABEgAhtEgAbABhedUyYCRIAIEAEiQAOAPEAEiAARIAJEYIMI0ADY4KJzykSACBABIkAEaACQB4gAESACRIAIbBABGgAbXHROmQgQASJABIgADQDyABEgAkSACBCBDSJAA2CDi84pEwEiQASIABGgAUAeIAJEgAgQASKwQQRoAGxw0TllIkAEiAARIAI0AMgDRIAIEAEiQAQ2iAANgA0uOqdMBIgAESACRIAGAHmACBABIkAEiMAGEaABsMFF55SJABEgAkSACNAAIA8QASJABIgAEdggAjQANrjonDIRIAJEgAgQARoA5AEiQASIABEgAhtEgAbABhedUyYCRIAIEAEiQAOAPEAEiAARIAJEYIMI0ADY4KJzykSACBABIkAEaACQB4gAESACRIAIbBABGgAbXHROmQgQASJABIgADQDyABEgAkSACBCBDSJAA2CDi84pEwEiQASIABGgAUAeIAJEgAgQASKwQQRoAGxw0TllIkAEiAARIAI0AMgDRIAIEAEiQAQ2iAANgA0uOqdMBIgAESACROBmagg+ePIk9RCS0v/H11/tdhcJh3AptEk/3QIQf/Lfhvffn/6vs3R7Tyi/+keRvwnd2Z/Odh8+eJBsBMkNAMz81at0i3B5cbG7uIQUTuP+8XYauhXVdNM2kyb9hIsvpIk/8QcC4IMURsiR/1LK/90/pmWB1NQ3fQtgf0Rfw9SLsSh9Cv9F4T4hRvxPIFk0g/g34V4aj6XpNWdbpTYp9x0cNmsAuIvvph2c1pVMvflIPy0/EX/i34bAUnyxFJ22OR7zNiXve3DYpAHQtfhd+T34lVeUevORflqeIf7Evw+Buflj7v775nYs24Sc98ABVTZnAAwt/lC5J655Vku9+Ug/LV8Qf+Lvg8BcfDJXvz5zOtZZtXwPwEGrbsoA8F1833oKYhFh6s1H+mnZhPgT/xAEpuaXqfsLmcux7irlegQOdpPNGAChix9a3wY1u3jqzUf6aVmC+BP/GASm4pup+omZw7HNquT5CBzcppswAGIXP7adC7JP+sv/vts9/dKnZl0H9QfbOJvvu/+5233/r3UfGiN9DywVrGNI/D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fy0GgFYkfWMIEH/yn/vtA90jbljc/nMnoGmRC3Pv/z4DYAn5TwMgUwNgicUHny9lAIBWmxEwZACg3WSuywjoMQAmo42OSL8dTuLfjsvUueQ/f0Tn4MkW/LsMgKXk/9YNgCxfA1xq8f13wzQ1k89rjk0dAg3ph6A1fV3iPz2mIT2Wgv9c4/TsN7mcDFnTwutmZwCsffGTz89zE87G16Q/G7ReHRN/L5hmq5Q7/nOPb6D/5PJxtoXPs+OsDICtLH7yeQ5swtlZlfRnh7iXAPHvhWf2wlzxX2pcHXSSy8XZFz4/AtkYAFtb/OTz7diEi7Eo6S8GdSsh4t8Ky2KZueG/9Hgcesnl4WILnxehLD4E9OED+U3Jjbp//lXLkzEbxYLTJgJEYFsI4CHAlPL/gydPkgOecv43k89eBnBxeblLZQEu+RaAi/UBGbfdXKaJABEgAttBIKX8l9fAdpeif1I4yP+zs7MUpK9pZnMLoFKG18Naf2Rr813/inKGRIAIxCKwNXm
  381. "text/plain": [
  382. "<PIL.Image.Image image mode=RGBA size=512x416>"
  383. ]
  384. },
  385. "metadata": {},
  386. "output_type": "display_data"
  387. },
  388. {
  389. "name": "stdout",
  390. "output_type": "stream",
  391. "text": [
  392. "The shield for shield_value = 1.0\n",
  393. "Training with shield:\n"
  394. ]
  395. },
  396. {
  397. "data": {
  398. "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAGgCAYAAADcjN+JAABf6klEQVR4Ae29Pa8lR5rnd1hT4GAA9s6ABGovAbKoMegMx+lxeEhPzsorr+nJu/sBWOXxAxBySMqRIKCvLHlsrzBG70rGWM07jrjANOU0sC1Wc8GLGrDRoyawWGJmqPidPE+dyDiZ52TEycyIyPzHRdzMjIwnnox/PG8R+XJeur6+/nGjJASEgBAQAkJACKwKgXur6q06KwSEgBAQAkJACOwQUAAgQRACQkAICAEhsEIEFACscNDVZSEgBISAEBACCgAkA0JACAgBISAEVoiAAoAVDrq6LASEgBAQAkJAAYBkQAgIASEgBITAChFQALDCQVeXhYAQ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g7YsbMLU+v/qQBgDvuvAKDQAGCOwUfO5woA4NUVBJwLAKAbLfUFAScCgNF405D4d8Mp/LtxGbtU8jcc0SlksgP/vgBgLvu/9gCgyNcA5xr84dowTs3s/ZpCqWOgEf8YtMavK/zHxzSmxVrwn+o6B7ab3U7GjGnldYsLAJY++Nn7N1AJJ5Nr8Z8M2kENC/9BME1WqXT8p76+M+1nt4+TDXyZDRcVAKxl8LP384wSTi6q4j85xCcZCP+T8Ex+slT857quHj7Z7eLkA18eg2ICgLUNfvb+9ijhbCIq/rNB3clI+HfCMlthafjPfT0Bv+z2cLaBL4tRER8C+viR+03Jlaaf/7LjyZiVYqFuCwEhsC4EeAgwp/3/6OnT7IDn7P/97L13F3B9c7PJFQHO+RZAiPUtBW+EpToWAkJACKwHgZz2370Gtrlx/idHwv4/ePAgB+sXPIu5BbBzhi8ua/k7a+v
  399. "text/plain": [
  400. "<PIL.Image.Image image mode=RGBA size=512x416>"
  401. ]
  402. },
  403. "metadata": {},
  404. "output_type": "display_data"
  405. },
  406. {
  407. "name": "stdout",
  408. "output_type": "stream",
  409. "text": [
  410. "Using cpu device\n",
  411. "Wrapping the env with a `Monitor` wrapper\n",
  412. "Wrapping the env in a DummyVecEnv.\n",
  413. "Wrapping the env in a VecTransposeImage.\n"
  414. ]
  415. },
  416. {
  417. "ename": "AssertionError",
  418. "evalue": "",
  419. "output_type": "error",
  420. "traceback": [
  421. "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
  422. "\u001b[0;31mAssertionError\u001b[0m Traceback (most recent call last)",
  423. "Cell \u001b[0;32mIn[3], line 62\u001b[0m\n\u001b[1;32m 60\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;18m__name__\u001b[39m \u001b[38;5;241m==\u001b[39m \u001b[38;5;124m'\u001b[39m\u001b[38;5;124m__main__\u001b[39m\u001b[38;5;124m'\u001b[39m:\n\u001b[1;32m 61\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mStarting the training\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m---> 62\u001b[0m \u001b[43mmain\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\n",
  424. "Cell \u001b[0;32mIn[3], line 55\u001b[0m, in \u001b[0;36mmain\u001b[0;34m()\u001b[0m\n\u001b[1;32m 52\u001b[0m model\u001b[38;5;241m.\u001b[39mset_logger(logger)\n\u001b[1;32m 53\u001b[0m steps \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m20_000\u001b[39m\n\u001b[0;32m---> 55\u001b[0m \u001b[38;5;28;01massert\u001b[39;00m(\u001b[38;5;28;01mFalse\u001b[39;00m)\n\u001b[1;32m 56\u001b[0m model\u001b[38;5;241m.\u001b[39mlearn(steps,callback\u001b[38;5;241m=\u001b[39m[InfoCallback()])\n",
  425. "\u001b[0;31mAssertionError\u001b[0m: "
  426. ]
  427. }
  428. ],
  429. "source": [
  430. "GRID_TO_PRISM_BINARY=os.getenv(\"M2P_BINARY\")\n",
  431. "\n",
  432. "def mask_fn(env: gym.Env):\n",
  433. " return env.create_action_mask()\n",
  434. "\n",
  435. "def nomask_fn(env: gym.Env):\n",
  436. " return [1.0] * 7\n",
  437. "\n",
  438. "def main():\n",
  439. " env = \"MiniGrid-LavaSlipperyCliff-16x13-Slip10-Time-v0\"\n",
  440. " \n",
  441. " formula = \"Pmax=? [G ! AgentIsOnLava]\"\n",
  442. " value_for_training = 0.99\n",
  443. " shield_comparison = \"absolute\"\n",
  444. " shielding = ShieldingConfig.Training\n",
  445. " \n",
  446. " logger = Logger(\"/tmp\", output_formats=[HumanOutputFormat(sys.stdout)])\n",
  447. " \n",
  448. " env = gym.make(env, render_mode=\"rgb_array\")\n",
  449. " image_env = RGBImgObsWrapper(env, TILE_PIXELS)\n",
  450. " env = RGBImgObsWrapper(env, 8)\n",
  451. " env = ImgObsWrapper(env)\n",
  452. " env = MiniWrapper(env)\n",
  453. "\n",
  454. " \n",
  455. " env.reset()\n",
  456. " Image.fromarray(env.render()).show()\n",
  457. " \n",
  458. " shield_handlers = dict()\n",
  459. " if shield_needed(shielding):\n",
  460. " for value in [0.9, 0.95, 0.99, 1.0]:\n",
  461. " shield_handler = MiniGridShieldHandler(GRID_TO_PRISM_BINARY, \"grid.txt\", \"grid.prism\", formula, shield_value=value, shield_comparison=shield_comparison, nocleanup=False, prism_file=None)\n",
  462. " env = MiniGridSbShieldingWrapper(env, shield_handler=shield_handler, create_shield_at_reset=False)\n",
  463. "\n",
  464. "\n",
  465. " shield_handlers[value] = shield_handler\n",
  466. " if shield_needed(shielding):\n",
  467. " for value in [0.9, 0.95, 0.99, 1.0]: \n",
  468. " create_shield_overlay_image(image_env, shield_handlers[value].create_shield())\n",
  469. " print(f\"The shield for shield_value = {value}\")\n",
  470. "\n",
  471. " if shielding == ShieldingConfig.Training:\n",
  472. " env = MiniGridSbShieldingWrapper(env, shield_handler=shield_handlers[value_for_training], create_shield_at_reset=False)\n",
  473. " env = ActionMasker(env, mask_fn)\n",
  474. " print(\"Training with shield:\")\n",
  475. " create_shield_overlay_image(image_env, shield_handlers[value_for_training].create_shield())\n",
  476. " elif shielding == ShieldingConfig.Disabled:\n",
  477. " env = ActionMasker(env, nomask_fn)\n",
  478. " else:\n",
  479. " assert(False) \n",
  480. " model = MaskablePPO(\"CnnPolicy\", env, verbose=1, device=\"auto\")\n",
  481. " model.set_logger(logger)\n",
  482. " steps = 20_000\n",
  483. "\n",
  484. " assert(False)\n",
  485. " model.learn(steps,callback=[InfoCallback()])\n",
  486. "\n",
  487. "\n",
  488. "\n",
  489. "if __name__ == '__main__':\n",
  490. " print(\"Starting the training\")\n",
  491. " main()"
  492. ]
  493. },
  494. {
  495. "cell_type": "code",
  496. "execution_count": null,
  497. "metadata": {},
  498. "outputs": [],
  499. "source": []
  500. }
  501. ],
  502. "metadata": {
  503. "kernelspec": {
  504. "display_name": "Python 3 (ipykernel)",
  505. "language": "python",
  506. "name": "python3"
  507. },
  508. "language_info": {
  509. "codemirror_mode": {
  510. "name": "ipython",
  511. "version": 3
  512. },
  513. "file_extension": ".py",
  514. "mimetype": "text/x-python",
  515. "name": "python",
  516. "nbconvert_exporter": "python",
  517. "pygments_lexer": "ipython3",
  518. "version": "3.10.12"
  519. }
  520. },
  521. "nbformat": 4,
  522. "nbformat_minor": 4
  523. }