File size: 552 Bytes
03f9084
 
 
 
a708f96
03f9084
 
a708f96
 
 
03f9084
a708f96
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os

import pandas as pd

from src.display.utils import AutoEvalColumn


def get_leaderboard_df_crm(
    crm_results_path: str, cols: list
) -> tuple[pd.DataFrame, pd.DataFrame]:
    """Creates a dataframe from all the individual experiment results"""
    model_performance_df = pd.read_csv(os.path.join(crm_results_path, "all_results.csv"))
    
    model_performance_df = model_performance_df[cols].round(decimals=2)
    model_performance_df = model_performance_df.sort_values("Overall ⬆️", ascending=False)
    return model_performance_df