File size: 605 Bytes
cd2355c
 
 
 
 
 
adcaec0
cd2355c
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

def filter_benchmarks_table(df, hw_selected, platform_selected,
                            size_selected, precision_selected,
                            type_selected, affiliation_selected):
 
    filtered_df = df[
    df['Training 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>'