Spaces:
Runtime error
Runtime error
initial commit to RL stats
Browse files
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
title: Deep Rl Stats
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 1 |
---
|
| 2 |
title: Deep Rl Stats
|
| 3 |
+
emoji: π
|
| 4 |
colorFrom: green
|
| 5 |
colorTo: pink
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 2.9b24
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
utils.py
CHANGED
|
@@ -7,7 +7,7 @@ import matplotlib.pyplot as plt
|
|
| 7 |
|
| 8 |
|
| 9 |
def plot_bar(value,name,x_name,y_name,title):
|
| 10 |
-
fig, ax = plt.subplots(tight_layout=True)
|
| 11 |
|
| 12 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 13 |
|
|
@@ -16,7 +16,7 @@ def plot_bar(value,name,x_name,y_name,title):
|
|
| 16 |
|
| 17 |
return ax.figure
|
| 18 |
def plot_barh(value,name,x_name,y_name,title):
|
| 19 |
-
fig, ax = plt.subplots(tight_layout=True)
|
| 20 |
|
| 21 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 22 |
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
def plot_bar(value,name,x_name,y_name,title):
|
| 10 |
+
fig, ax = plt.subplots(figsize=(10,4),tight_layout=True)
|
| 11 |
|
| 12 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 13 |
|
|
|
|
| 16 |
|
| 17 |
return ax.figure
|
| 18 |
def plot_barh(value,name,x_name,y_name,title):
|
| 19 |
+
fig, ax = plt.subplots(figsize=(10,4),tight_layout=True)
|
| 20 |
|
| 21 |
ax.set(xlabel=x_name, ylabel=y_name,title=title)
|
| 22 |
|