zhm-real 5 lat temu
rodzic
commit
b2e489448a

BIN
Model-free Control/__pycache__/tools.cpython-37.pyc


BIN
Model-free Control/gif/Qlearning.gif


BIN
Model-free Control/gif/SARSA.gif


+ 2 - 2
Model-free Control/tools.py

@@ -71,7 +71,7 @@ def show_map(xI, xG, obs_map, lose_map, name):
     plt.plot(xG[0], xG[1], "gs", ms = 24)                                    # plot goal states (green)
 
     plt.plot(obs_x, obs_y, "sk", ms = 24)                                    # plot obstacles (black)
-    plt.plot(lose_x, lose_y, marker = 's', color = '#808080', ms = 24)       # plot losing states (grown)
+    plt.plot(lose_x, lose_y, marker = 's', color = '#A52A2A', ms = 24)       # plot losing states (grown)
     plt.title(name, fontdict=None)
     plt.axis("equal")
 
@@ -87,6 +87,6 @@ def plot_dots(x):
     plt.plot(x[0], x[1], linewidth='3', color='#808080', marker='o', ms = 23)    # plot dots for animation
     plt.gcf().canvas.mpl_connect('key_release_event',
                                  lambda event: [exit(0) if event.key == 'escape' else None])
-    plt.pause(0.001)
+    plt.pause(0.1)
 
 

+ 2 - 1
Search-based Planning/.idea/workspace.xml

@@ -2,7 +2,8 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="025aff36-a6aa-4945-ab7e-b2c625055f47" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/../Stochastic Shortest Path/value_iteration.py" beforeDir="false" afterPath="$PROJECT_DIR$/../Stochastic Shortest Path/value_iteration.py" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/../Model-free Control/tools.py" beforeDir="false" afterPath="$PROJECT_DIR$/../Model-free Control/tools.py" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
     </list>
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />