Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendanMartin authored Jul 11, 2018
1 parent 79cdf42 commit 93718ea
Show file tree
Hide file tree
Showing 8 changed files with 1,058 additions and 0 deletions.

Large diffs are not rendered by default.

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.
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.
24 changes: 24 additions & 0 deletions Intro to Reinforcement Q-Learning/utils.py
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


0 comments on commit 93718ea

Please sign in to comment.