Spaces:
Sleeping
Sleeping
reverting to previous stable state
Browse files- src/load_data.py +2 -2
- src/plot.py +3 -3
src/load_data.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
4 |
-
|
5 |
def load_dataframe() -> pd.DataFrame:
|
6 |
"""
|
7 |
Load dataframe from the csv file in public directory
|
@@ -13,7 +13,7 @@ def load_dataframe() -> pd.DataFrame:
|
|
13 |
dataframe = dataframe.drop(columns = "Unnamed: 0")
|
14 |
return dataframe
|
15 |
|
16 |
-
|
17 |
def sort_by(dataframe: pd.DataFrame, column_name: str, ascending:bool = False) -> pd.DataFrame:
|
18 |
"""
|
19 |
Sort the dataframe by column_name
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
|
4 |
+
#@st.cache_data
|
5 |
def load_dataframe() -> pd.DataFrame:
|
6 |
"""
|
7 |
Load dataframe from the csv file in public directory
|
|
|
13 |
dataframe = dataframe.drop(columns = "Unnamed: 0")
|
14 |
return dataframe
|
15 |
|
16 |
+
#@st.cache_data
|
17 |
def sort_by(dataframe: pd.DataFrame, column_name: str, ascending:bool = False) -> pd.DataFrame:
|
18 |
"""
|
19 |
Sort the dataframe by column_name
|
src/plot.py
CHANGED
@@ -17,7 +17,7 @@ columns = ["model_name", "ARC", "HellaSwag", "TruthfulQA", "Winogrande", "GSM8K"
|
|
17 |
"MMLU", "Average"]
|
18 |
|
19 |
|
20 |
-
|
21 |
def plot_radar_chart_index(dataframe: pd.DataFrame, index: int, categories: list = categories, fillcolor: str = fillcolor, line_color:str = line_color):
|
22 |
"""
|
23 |
plot the index-th row of the dataframe
|
@@ -62,7 +62,7 @@ def plot_radar_chart_index(dataframe: pd.DataFrame, index: int, categories: list
|
|
62 |
|
63 |
return fig
|
64 |
|
65 |
-
|
66 |
def plot_radar_chart_name(dataframe: pd.DataFrame, model_name: str, categories: list = categories, fillcolor: str = fillcolor, line_color:str = line_color):
|
67 |
"""
|
68 |
plot the results of the model named model_name row of the dataframe
|
@@ -108,7 +108,7 @@ def plot_radar_chart_name(dataframe: pd.DataFrame, model_name: str, categories:
|
|
108 |
return fig
|
109 |
|
110 |
|
111 |
-
|
112 |
def plot_radar_chart_rows(rows: object, columns:list = columns, categories: list = categories, fillcolor: str = fillcolor, line_color:str = line_color):
|
113 |
"""
|
114 |
plot the results of the model selected by the checkbox
|
|
|
17 |
"MMLU", "Average"]
|
18 |
|
19 |
|
20 |
+
#@st.cache_data
|
21 |
def plot_radar_chart_index(dataframe: pd.DataFrame, index: int, categories: list = categories, fillcolor: str = fillcolor, line_color:str = line_color):
|
22 |
"""
|
23 |
plot the index-th row of the dataframe
|
|
|
62 |
|
63 |
return fig
|
64 |
|
65 |
+
#@st.cache_data
|
66 |
def plot_radar_chart_name(dataframe: pd.DataFrame, model_name: str, categories: list = categories, fillcolor: str = fillcolor, line_color:str = line_color):
|
67 |
"""
|
68 |
plot the results of the model named model_name row of the dataframe
|
|
|
108 |
return fig
|
109 |
|
110 |
|
111 |
+
#@st.cache_data
|
112 |
def plot_radar_chart_rows(rows: object, columns:list = columns, categories: list = categories, fillcolor: str = fillcolor, line_color:str = line_color):
|
113 |
"""
|
114 |
plot the results of the model selected by the checkbox
|