Skip to content

Commit

Permalink
optimaze speed BrandsHatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ro0t-set authored and manuandru committed Jan 25, 2024
1 parent b200eb5 commit 4ff1eae
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
Binary file added src/best_global_model.zip
Binary file not shown.
9 changes: 7 additions & 2 deletions src/wrapper/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,14 @@ def episode_end(reason = None, rew = 0):
if not self.one_lap_done:
steps_done = len(self.episode_returns)
elif self.one_lap_done:
steps_done = len(self.episode_returns) / 2
steps_done = len(self.episode_returns) / 2

reward += (( steps_goal - steps_done ) * 0.05) + 400
k = (steps_done - steps_goal)/steps_goal

reward += (1-k) * 100


#reward += (( steps_goal - steps_done ) * 0.05) + 400

print("----------------- Lap Done ----------------->", self.map_path, len(self.episode_returns) * 0.01, reward)

Expand Down
Binary file modified train_test/best_global_model.zip
Binary file not shown.
Binary file modified train_test/best_model.zip
Binary file not shown.
Binary file modified train_test/evaluations.npz
Binary file not shown.
2 changes: 1 addition & 1 deletion train_test/mean_reward.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1738.5742371499996
1107.9332437999997

0 comments on commit 4ff1eae

Please sign in to comment.