Spaces:
Sleeping
Sleeping
add model link
Browse files- .gitignore +2 -0
- utils.py +3 -4
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
*.pyc
|
2 |
+
.env
|
utils.py
CHANGED
@@ -42,12 +42,12 @@ def fetch_competition_summary(_api: wandb.Api, entity: str, project: str) -> pd.
|
|
42 |
for run in runs:
|
43 |
try:
|
44 |
summary = run.summary
|
45 |
-
if summary.get("
|
46 |
data.append({
|
47 |
"Created At": run.created_at,
|
48 |
"Validator ID": summary.get("validator_hotkey"),
|
49 |
"Winning Hotkey": summary.get("winning_hotkey"),
|
50 |
-
"
|
51 |
})
|
52 |
except Exception as e:
|
53 |
st.write(f"Error processing run {run.id}: {str(e)}")
|
@@ -104,9 +104,8 @@ def fetch_models_evaluation(_api: wandb.Api, entity: str, project: str) -> pd.Da
|
|
104 |
"ROC AUC": summary.get("roc_auc"),
|
105 |
"Confusion Matrix": summary.get("confusion_matrix"),
|
106 |
|
107 |
-
"Model link": model_link_html,
|
108 |
"Score": summary.get("score"),
|
109 |
-
|
110 |
})
|
111 |
except Exception as e:
|
112 |
st.write(f"Error processing run {run.id}: {str(e)}")
|
|
|
42 |
for run in runs:
|
43 |
try:
|
44 |
summary = run.summary
|
45 |
+
if summary.get("log_type") == "competition_result":
|
46 |
data.append({
|
47 |
"Created At": run.created_at,
|
48 |
"Validator ID": summary.get("validator_hotkey"),
|
49 |
"Winning Hotkey": summary.get("winning_hotkey"),
|
50 |
+
"Model link": summary.get("model_link"),
|
51 |
})
|
52 |
except Exception as e:
|
53 |
st.write(f"Error processing run {run.id}: {str(e)}")
|
|
|
104 |
"ROC AUC": summary.get("roc_auc"),
|
105 |
"Confusion Matrix": summary.get("confusion_matrix"),
|
106 |
|
|
|
107 |
"Score": summary.get("score"),
|
108 |
+
"Model link": summary.get("model_link"),
|
109 |
})
|
110 |
except Exception as e:
|
111 |
st.write(f"Error processing run {run.id}: {str(e)}")
|