Spaces:
Sleeping
Sleeping
Commit ·
37341c1
1
Parent(s): 1e29694
test 4
Browse files
utils.py
CHANGED
|
@@ -20,14 +20,11 @@ def get_all_competition_summary(api, projects):
|
|
| 20 |
|
| 21 |
def fetch_competition_summary(api, projects, selected_project):
|
| 22 |
data = []
|
| 23 |
-
|
| 24 |
-
st.write(f"Fetching competition summary for {selected_project}")
|
| 25 |
-
|
| 26 |
entity = projects[selected_project]["entity"]
|
| 27 |
project = projects[selected_project]["project"]
|
| 28 |
|
| 29 |
runs = api.runs(f"{entity}/{project}")
|
| 30 |
-
st.write(f"Number of runs to process: {len(runs)}")
|
| 31 |
|
| 32 |
for run in runs:
|
| 33 |
try:
|
|
@@ -48,18 +45,15 @@ def fetch_competition_summary(api, projects, selected_project):
|
|
| 48 |
df['Created At'] = pd.to_datetime(df['Created At'])
|
| 49 |
df = df.sort_values(by="Created At", ascending=False)
|
| 50 |
|
| 51 |
-
st.write(f"Competition summary data: {len(df)} rows")
|
| 52 |
return df
|
| 53 |
|
| 54 |
def fetch_models_evaluation(api, projects, selected_project):
|
| 55 |
data = []
|
| 56 |
-
st.write(f"Fetching models evaluation for {selected_project}")
|
| 57 |
|
| 58 |
entity = projects[selected_project]["entity"]
|
| 59 |
project = projects[selected_project]["project"]
|
| 60 |
|
| 61 |
runs = api.runs(f"{entity}/{project}")
|
| 62 |
-
st.write(f"Number of runs to process: {len(runs)}")
|
| 63 |
|
| 64 |
for run in runs:
|
| 65 |
try:
|
|
@@ -85,7 +79,6 @@ def fetch_models_evaluation(api, projects, selected_project):
|
|
| 85 |
df['Created At'] = pd.to_datetime(df['Created At'])
|
| 86 |
df = df.sort_values(by="Created At", ascending=False)
|
| 87 |
|
| 88 |
-
st.write(f"Models evaluation data: {len(df)} rows")
|
| 89 |
return df
|
| 90 |
|
| 91 |
def update_leader_info(leader_info, competition, best_model):
|
|
|
|
| 20 |
|
| 21 |
def fetch_competition_summary(api, projects, selected_project):
|
| 22 |
data = []
|
| 23 |
+
|
|
|
|
|
|
|
| 24 |
entity = projects[selected_project]["entity"]
|
| 25 |
project = projects[selected_project]["project"]
|
| 26 |
|
| 27 |
runs = api.runs(f"{entity}/{project}")
|
|
|
|
| 28 |
|
| 29 |
for run in runs:
|
| 30 |
try:
|
|
|
|
| 45 |
df['Created At'] = pd.to_datetime(df['Created At'])
|
| 46 |
df = df.sort_values(by="Created At", ascending=False)
|
| 47 |
|
|
|
|
| 48 |
return df
|
| 49 |
|
| 50 |
def fetch_models_evaluation(api, projects, selected_project):
|
| 51 |
data = []
|
|
|
|
| 52 |
|
| 53 |
entity = projects[selected_project]["entity"]
|
| 54 |
project = projects[selected_project]["project"]
|
| 55 |
|
| 56 |
runs = api.runs(f"{entity}/{project}")
|
|
|
|
| 57 |
|
| 58 |
for run in runs:
|
| 59 |
try:
|
|
|
|
| 79 |
df['Created At'] = pd.to_datetime(df['Created At'])
|
| 80 |
df = df.sort_values(by="Created At", ascending=False)
|
| 81 |
|
|
|
|
| 82 |
return df
|
| 83 |
|
| 84 |
def update_leader_info(leader_info, competition, best_model):
|