Spaces:
Sleeping
Sleeping
Merge pull request #26 from macrocosm-os/dashboard
Browse files
utils.py
CHANGED
|
@@ -316,10 +316,13 @@ def plot_reward_trends(df_stats, task='qa', window=14, col='normalized_reward',
|
|
| 316 |
|
| 317 |
# Add annotations based on relevant releases
|
| 318 |
for idx, row in release_dates.iterrows():
|
| 319 |
-
|
| 320 |
-
|
|
|
|
|
|
|
|
|
|
| 321 |
# TODO add annotation or something
|
| 322 |
-
fig.add_vline(row['release_date'], line_color=
|
| 323 |
|
| 324 |
return fig
|
| 325 |
|
|
@@ -404,8 +407,4 @@ def load_state_vars(username=USERNAME, percentile=0.95):
|
|
| 404 |
|
| 405 |
if __name__ == '__main__':
|
| 406 |
|
| 407 |
-
|
| 408 |
-
df = load_runs()
|
| 409 |
-
|
| 410 |
-
df.to_csv('test_wandb_data.csv', index=False)
|
| 411 |
-
print(df)
|
|
|
|
| 316 |
|
| 317 |
# Add annotations based on relevant releases
|
| 318 |
for idx, row in release_dates.iterrows():
|
| 319 |
+
line_color = 'grey'
|
| 320 |
+
if task in row['tasks_affected']:
|
| 321 |
+
line_color='red'
|
| 322 |
+
elif 'all' not in row['tasks_affected']:
|
| 323 |
+
line_color='blue'
|
| 324 |
# TODO add annotation or something
|
| 325 |
+
fig.add_vline(row['release_date'], line_color=line_color, opacity=0.6, line_dash='dot', line_width=1)#, annotation_text=str(v))
|
| 326 |
|
| 327 |
return fig
|
| 328 |
|
|
|
|
| 407 |
|
| 408 |
if __name__ == '__main__':
|
| 409 |
|
| 410 |
+
pass
|
|
|
|
|
|
|
|
|
|
|
|