eduardo-alvarez's picture
create leaderboard
cd2355c
raw
history blame
597 Bytes
def filter_benchmarks_table(df, hw_selected, platform_selected,
size_selected, precision_selected,
type_selected, affiliation_selected):
filtered_df = df[
df['Hardware'].isin(hw_selected) &
df['Infrastructure'].isin(platform_selected) &
df['Size'].isin(size_selected) &
df['Precision'].isin(precision_selected) &
df['Model Type'].isin(type_selected) &
df['Affiliation'].isin(affiliation_selected)]
return filtered_df
def make_clickable(val):
return f'<a target="_blank" href="{val}">{val}</a>'