Spaces:
Paused
Paused
update to new sn1
Browse files- dashboard.py +9 -8
dashboard.py
CHANGED
|
@@ -8,7 +8,7 @@ from opendashboards.assets import io, inspect, metric, plot
|
|
| 8 |
# cache individual file loads
|
| 9 |
# Hotkey churn
|
| 10 |
|
| 11 |
-
DEFAULT_PROJECT = "
|
| 12 |
DEFAULT_FILTERS = {"tags": {"$in": [f'1.1.{i}' for i in range(10)]}}
|
| 13 |
DEFAULT_SELECTED_HOTKEYS = None
|
| 14 |
DEFAULT_SRC = 'followup'
|
|
@@ -23,7 +23,7 @@ st.set_page_config(
|
|
| 23 |
'About': """
|
| 24 |
This dashboard is part of the OpenTensor project. \n
|
| 25 |
To see runs in wandb, go to: \n
|
| 26 |
-
https://wandb.ai/opentensor-dev/
|
| 27 |
"""
|
| 28 |
},
|
| 29 |
layout = "centered"
|
|
@@ -82,7 +82,8 @@ with tab1:
|
|
| 82 |
st.dataframe(df_long.head(num_rows) if use_long_checkbox else df.head(num_rows),
|
| 83 |
use_container_width=True)
|
| 84 |
|
| 85 |
-
step_types = ['all']+['augment','followup','answer']#list(df.name.unique())
|
|
|
|
| 86 |
|
| 87 |
### UID Health ###
|
| 88 |
# TODO: Live time - time elapsed since moving_averaged_score for selected UID was 0 (lower bound so use >Time)
|
|
@@ -93,8 +94,8 @@ with tab2:
|
|
| 93 |
st.subheader("UID :violet[Health]")
|
| 94 |
st.info(f"Showing UID health metrics for **{n_runs} selected runs**")
|
| 95 |
|
| 96 |
-
uid_src = st.radio('Select
|
| 97 |
-
df_uid = df_long[df_long.
|
| 98 |
|
| 99 |
metric.uids(df_uid, uid_src)
|
| 100 |
uids = st.multiselect('UID:', sorted(df_uid['uids'].unique()), key='uid')
|
|
@@ -154,8 +155,8 @@ with tab3:
|
|
| 154 |
|
| 155 |
msg_col1, msg_col2 = st.columns(2)
|
| 156 |
# completion_src = msg_col1.radio('Select one:', ['followup', 'answer'], horizontal=True, key='completion_src')
|
| 157 |
-
completion_src = st.radio('Select
|
| 158 |
-
df_comp = df_long[df_long.
|
| 159 |
|
| 160 |
completion_info.info(f"Showing **{completion_src}** completions for **{n_runs} selected runs**")
|
| 161 |
|
|
@@ -204,7 +205,7 @@ with tab3:
|
|
| 204 |
df_comp,
|
| 205 |
completion_col='completions',
|
| 206 |
uid_col='uids',
|
| 207 |
-
time_col='
|
| 208 |
length_opt=completion_length_radio,
|
| 209 |
)
|
| 210 |
|
|
|
|
| 8 |
# cache individual file loads
|
| 9 |
# Hotkey churn
|
| 10 |
|
| 11 |
+
DEFAULT_PROJECT = "alpha-validators"
|
| 12 |
DEFAULT_FILTERS = {"tags": {"$in": [f'1.1.{i}' for i in range(10)]}}
|
| 13 |
DEFAULT_SELECTED_HOTKEYS = None
|
| 14 |
DEFAULT_SRC = 'followup'
|
|
|
|
| 23 |
'About': """
|
| 24 |
This dashboard is part of the OpenTensor project. \n
|
| 25 |
To see runs in wandb, go to: \n
|
| 26 |
+
https://wandb.ai/opentensor-dev/alpha-validators/table?workspace=default
|
| 27 |
"""
|
| 28 |
},
|
| 29 |
layout = "centered"
|
|
|
|
| 82 |
st.dataframe(df_long.head(num_rows) if use_long_checkbox else df.head(num_rows),
|
| 83 |
use_container_width=True)
|
| 84 |
|
| 85 |
+
# step_types = ['all']+['augment','followup','answer']#list(df.name.unique())
|
| 86 |
+
step_types = ['all']+list(df.task.unique())
|
| 87 |
|
| 88 |
### UID Health ###
|
| 89 |
# TODO: Live time - time elapsed since moving_averaged_score for selected UID was 0 (lower bound so use >Time)
|
|
|
|
| 94 |
st.subheader("UID :violet[Health]")
|
| 95 |
st.info(f"Showing UID health metrics for **{n_runs} selected runs**")
|
| 96 |
|
| 97 |
+
uid_src = st.radio('Select task type:', step_types, horizontal=True, key='uid_src')
|
| 98 |
+
df_uid = df_long[df_long.task.str.contains(uid_src)] if uid_src != 'all' else df_long
|
| 99 |
|
| 100 |
metric.uids(df_uid, uid_src)
|
| 101 |
uids = st.multiselect('UID:', sorted(df_uid['uids'].unique()), key='uid')
|
|
|
|
| 155 |
|
| 156 |
msg_col1, msg_col2 = st.columns(2)
|
| 157 |
# completion_src = msg_col1.radio('Select one:', ['followup', 'answer'], horizontal=True, key='completion_src')
|
| 158 |
+
completion_src = st.radio('Select task type:', step_types, horizontal=True, key='completion_src')
|
| 159 |
+
df_comp = df_long[df_long.task.str.contains(completion_src)] if completion_src != 'all' else df_long
|
| 160 |
|
| 161 |
completion_info.info(f"Showing **{completion_src}** completions for **{n_runs} selected runs**")
|
| 162 |
|
|
|
|
| 205 |
df_comp,
|
| 206 |
completion_col='completions',
|
| 207 |
uid_col='uids',
|
| 208 |
+
time_col='timings',
|
| 209 |
length_opt=completion_length_radio,
|
| 210 |
)
|
| 211 |
|