Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ COLUMN_GROUPS = {
|
|
| 46 |
"world_model_group": [
|
| 47 |
'wm_recipe_percent_error', 'wm_geoguesser_mae', 'wm_weight_percent_error',
|
| 48 |
'wm_music_mae', 'wm_youtube_view_percent_error', 'Show Rec Score',
|
| 49 |
-
"Show Rec MAE", "Show Rec
|
| 50 |
],
|
| 51 |
}
|
| 52 |
|
|
@@ -165,7 +165,7 @@ def load_leaderboard_data(csv_file_path):
|
|
| 165 |
# Replace NaN with large/small numbers for sorting, which serialize reliably to JSON
|
| 166 |
# Higher is better -> fill with a very small number so they sort last when descending
|
| 167 |
df['Show Rec Score'].fillna(-99999, inplace=True)
|
| 168 |
-
df['Show Rec
|
| 169 |
# Lower is better -> fill with a very large number so they sort last when ascending
|
| 170 |
df['Show Rec MAE'].fillna(99999, inplace=True)
|
| 171 |
df['Show Rec Std Dev Error'].fillna(99999, inplace=True)
|
|
@@ -799,7 +799,7 @@ MASTER_COLUMN_ORDER = [
|
|
| 799 |
'wm_recipe_percent_error', 'wm_geoguesser_mae', 'wm_weight_percent_error',
|
| 800 |
'wm_music_mae', 'wm_youtube_view_percent_error',
|
| 801 |
"Show Rec Score", # Main Score
|
| 802 |
-
"Show Rec MAE", "Show Rec
|
| 803 |
# Writing
|
| 804 |
"Writing ✍️",
|
| 805 |
"avg_nsfw_score", "avg_dark_score",
|
|
@@ -871,9 +871,9 @@ ALL_COLUMN_DEFS = {
|
|
| 871 |
valueFormatter={"function": "params.value === 99999 ? '' : String(params.value)"},
|
| 872 |
cellClass="border-left-dashed"
|
| 873 |
),
|
| 874 |
-
"Show Rec
|
| 875 |
-
"Show Rec
|
| 876 |
-
headerName="Show Rec
|
| 877 |
width=120,
|
| 878 |
filterParams={"defaultOption": "greaterThanOrEqual"},
|
| 879 |
# Add this formatter to hide the placeholder
|
|
@@ -1194,7 +1194,7 @@ app.layout = html.Div([
|
|
| 1194 |
html.Li([html.Strong("Show Recommendation Score:"), " A model's ability to predict what rating out of ten a person will rate a TV show based on their previous ratings."]),
|
| 1195 |
html.Ul([
|
| 1196 |
html.Li([html.Strong("Show Rec MAE:"), " The mean absolute error between the model's predicted ratings and the user's true ratings."]),
|
| 1197 |
-
html.Li([html.Strong("Show Rec
|
| 1198 |
html.Li([html.Strong("Show Rec Std Dev Error:"), " The absolute difference between the spread of the model's predictions and the spread of the true ratings."]),
|
| 1199 |
], style={'listStyleType': 'circle', 'marginLeft': '20px'}),
|
| 1200 |
], style={'listStyleType': 'circle', 'marginLeft': '20px'}),
|
|
|
|
| 46 |
"world_model_group": [
|
| 47 |
'wm_recipe_percent_error', 'wm_geoguesser_mae', 'wm_weight_percent_error',
|
| 48 |
'wm_music_mae', 'wm_youtube_view_percent_error', 'Show Rec Score',
|
| 49 |
+
"Show Rec MAE", "Show Rec Correlation", "Show Rec Std Dev Error"
|
| 50 |
],
|
| 51 |
}
|
| 52 |
|
|
|
|
| 165 |
# Replace NaN with large/small numbers for sorting, which serialize reliably to JSON
|
| 166 |
# Higher is better -> fill with a very small number so they sort last when descending
|
| 167 |
df['Show Rec Score'].fillna(-99999, inplace=True)
|
| 168 |
+
df['Show Rec Correlation'].fillna(-99999, inplace=True)
|
| 169 |
# Lower is better -> fill with a very large number so they sort last when ascending
|
| 170 |
df['Show Rec MAE'].fillna(99999, inplace=True)
|
| 171 |
df['Show Rec Std Dev Error'].fillna(99999, inplace=True)
|
|
|
|
| 799 |
'wm_recipe_percent_error', 'wm_geoguesser_mae', 'wm_weight_percent_error',
|
| 800 |
'wm_music_mae', 'wm_youtube_view_percent_error',
|
| 801 |
"Show Rec Score", # Main Score
|
| 802 |
+
"Show Rec MAE", "Show Rec Correlation", "Show Rec Std Dev Error",
|
| 803 |
# Writing
|
| 804 |
"Writing ✍️",
|
| 805 |
"avg_nsfw_score", "avg_dark_score",
|
|
|
|
| 871 |
valueFormatter={"function": "params.value === 99999 ? '' : String(params.value)"},
|
| 872 |
cellClass="border-left-dashed"
|
| 873 |
),
|
| 874 |
+
"Show Rec Correlation": create_numeric_column(
|
| 875 |
+
"Show Rec Correlation",
|
| 876 |
+
headerName="Show Rec Correlation",
|
| 877 |
width=120,
|
| 878 |
filterParams={"defaultOption": "greaterThanOrEqual"},
|
| 879 |
# Add this formatter to hide the placeholder
|
|
|
|
| 1194 |
html.Li([html.Strong("Show Recommendation Score:"), " A model's ability to predict what rating out of ten a person will rate a TV show based on their previous ratings."]),
|
| 1195 |
html.Ul([
|
| 1196 |
html.Li([html.Strong("Show Rec MAE:"), " The mean absolute error between the model's predicted ratings and the user's true ratings."]),
|
| 1197 |
+
html.Li([html.Strong("Show Rec Correlation:"), " Measures how well the model's predictions trend with the user's true ratings."]),
|
| 1198 |
html.Li([html.Strong("Show Rec Std Dev Error:"), " The absolute difference between the spread of the model's predictions and the spread of the true ratings."]),
|
| 1199 |
], style={'listStyleType': 'circle', 'marginLeft': '20px'}),
|
| 1200 |
], style={'listStyleType': 'circle', 'marginLeft': '20px'}),
|