Skip to content

Commit 3da063d

Browse files
committed
Fix: Only consider workload variant times if they trained the base workload
1 parent 1e6b065 commit 3da063d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scoring/performance_profile.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,14 @@ def compute_performance_profiles(submissions,
307307
strict))
308308
df = pd.concat(dfs)
309309

310+
# For each held-out workload set to inf if the base workload is inf
311+
for workload in df.keys():
312+
if workload not in BASE_WORKLOADS:
313+
# If base do not have finite score set variant score to inf
314+
base_workload = get_base_workload_name(workload)
315+
df[workload] = df.apply(
316+
variant_criteria_filter(workload, base_workload), axis=1)
317+
310318
# Set score to inf if not within 4x of fastest submission
311319
best_scores = df.min(axis=0)
312320
df[df.apply(lambda x: x > 4 * best_scores, axis=1)] = np.inf

0 commit comments

Comments
 (0)