Skip to content

Commit 1103aad

Browse files
authored
Fix comparison for indifferent metric type in report (#177)
1 parent 88fd9c8 commit 1103aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklbench/report/implementation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ def select_comparison(i, j, diffs_selection):
193193
df_ith[column] / df_jth[column]
194194
)
195195
elif column in METRICS["indifferent"]:
196-
df[f"{comparison_name}\n{column} is equal"] = (
197-
df_ith[column] == df_jth[column]
196+
df[f"{comparison_name}\n{column} is equal"] = df_ith[column].eq(
197+
df_jth[column]
198198
)
199199
df = df.reset_index()
200200
# move to multi-index

0 commit comments

Comments
 (0)