-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79cdf42
commit 93718ea
Showing
8 changed files
with
1,058 additions
and
0 deletions.
There are no files selected for viewing
1,034 changes: 1,034 additions & 0 deletions
1,034
Intro to Reinforcement Q-Learning/A_practical_introduction_to_Reinforcement_Learning.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+41.6 KB
Intro to Reinforcement Q-Learning/assets/Reinforcement Learning Taxi Env.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+107 KB
Intro to Reinforcement Q-Learning/assets/q-matrix-initialized-to-learned.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import matplotlib.pyplot as plt | ||
import seaborn as sns | ||
from IPython.display import clear_output | ||
from time import sleep | ||
|
||
def print_frames(frames): | ||
for frame in frames: | ||
clear_output(wait=True) | ||
print(frame['frame'].getvalue()) | ||
print(f"State: {frame['state']}") | ||
print(f"Reward: {frame['reward']}") | ||
sleep(.1) | ||
|
||
|
||
def plot_q_table(q_table): | ||
fig, ax = plt.subplots(figsize=(16,16)) | ||
ax = sns.heatmap(q_table, cmap="Blues") | ||
plt.show() | ||
|
||
|
||
def display_training_info(episode, epochs): | ||
pass | ||
|
||
|