Initial commit
Browse files- .gitattributes +5 -35
- README.md +75 -13
- app.py +946 -0
- benchmark_standard_errors.csv +3 -0
- comprehensive_benchmark_scores.csv +3 -0
- requirements.txt +16 -3
.gitattributes
CHANGED
|
@@ -1,35 +1,5 @@
|
|
| 1 |
-
*.
|
| 2 |
-
*.
|
| 3 |
-
*.
|
| 4 |
-
*.
|
| 5 |
-
*.
|
| 6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 1 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
|
@@ -1,20 +1,82 @@
|
|
| 1 |
---
|
| 2 |
-
title: OpenThoughts
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: red
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
- streamlit
|
| 10 |
pinned: false
|
| 11 |
-
|
| 12 |
-
license: apache-2.0
|
| 13 |
---
|
| 14 |
|
| 15 |
-
#
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: OpenThoughts Model Benchmark Explorer
|
| 3 |
+
emoji: 📊
|
| 4 |
+
colorFrom: blue
|
| 5 |
colorTo: red
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: 1.28.0
|
| 8 |
+
app_file: benchmark_explorer_app.py
|
|
|
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# 🔬 OpenThoughts Evalchemy Benchmark Explorer
|
| 14 |
|
| 15 |
+
Exploring correlations and relationships between LLMs performance across different reasoning benchmarks.
|
| 16 |
+
This explorer is built on top of the [OpenThoughts](https://github.com/open-thoughts/open-thoughts) project to explore the model that we have trained and evaluated as well as external models that we have evaluated.
|
| 17 |
+
All evaluation results were produced and logged using [Evalchemy](https://github.com/mlfoundations/evalchemy).
|
| 18 |
|
| 19 |
+
## Features
|
| 20 |
+
|
| 21 |
+
### 📊 Overview Dashboard
|
| 22 |
+
- Key metrics and dataset statistics
|
| 23 |
+
- Benchmark coverage visualization
|
| 24 |
+
- Quick correlation insights
|
| 25 |
+
- Category-based analysis
|
| 26 |
+
|
| 27 |
+
### 🔥 Interactive Heatmap
|
| 28 |
+
- Multiple correlation methods (Pearson, Spearman, Kendall)
|
| 29 |
+
- Interactive hover tooltips
|
| 30 |
+
- Real-time correlation statistics
|
| 31 |
+
- Distribution analysis
|
| 32 |
+
|
| 33 |
+
### 📈 Scatter Plot Explorer
|
| 34 |
+
- Dynamic benchmark selection
|
| 35 |
+
- Interactive scatter plots with regression lines
|
| 36 |
+
- Multiple correlation coefficients
|
| 37 |
+
- Data point exploration
|
| 38 |
+
|
| 39 |
+
### 🎯 Model Performance Analysis
|
| 40 |
+
- Model search and filtering
|
| 41 |
+
- Performance rankings
|
| 42 |
+
- Radar chart comparisons
|
| 43 |
+
- Side-by-side model analysis
|
| 44 |
+
|
| 45 |
+
### 📋 Statistical Summary
|
| 46 |
+
- Comprehensive dataset statistics
|
| 47 |
+
- Benchmark-wise analysis
|
| 48 |
+
- Export capabilities
|
| 49 |
+
- Correlation summaries
|
| 50 |
+
|
| 51 |
+
### 🔬 Uncertainty Analysis
|
| 52 |
+
- Measurement precision analysis
|
| 53 |
+
- Error bar visualizations with 95% CI
|
| 54 |
+
- Signal-to-noise ratios
|
| 55 |
+
- Uncertainty-aware correlations
|
| 56 |
+
|
| 57 |
+
## Benchmark Categories
|
| 58 |
+
|
| 59 |
+
- **Math** (red): AIME24, AIME25, AMC23, MATH500
|
| 60 |
+
- **Code** (blue): CodeElo, CodeForces, LiveCodeBench v2 & v5
|
| 61 |
+
- **Science** (green): GPQADiamond, JEEBench
|
| 62 |
+
- **General** (orange): MMLUPro, HLE
|
| 63 |
+
|
| 64 |
+
## Data Filtering Options
|
| 65 |
+
|
| 66 |
+
- Category-based filtering
|
| 67 |
+
- Zero-value filtering with threshold
|
| 68 |
+
- Minimum coverage requirements
|
| 69 |
+
- Dynamic slider ranges based on actual data
|
| 70 |
+
|
| 71 |
+
## Architecture
|
| 72 |
+
|
| 73 |
+
- **Frontend**: Streamlit with Plotly interactive visualizations
|
| 74 |
+
- **Backend**: Pandas/NumPy for data processing, SciPy for statistics
|
| 75 |
+
- **Caching**: Smart caching for performance optimization
|
| 76 |
+
- **Real-time**: On-the-fly correlation computation for dynamic filtering
|
| 77 |
+
|
| 78 |
+
## Usage
|
| 79 |
+
|
| 80 |
+
The application automatically loads benchmark data and provides six specialized analysis modules. Use the sidebar controls to filter data and customize the analysis based on your needs.
|
| 81 |
+
|
| 82 |
+
Perfect for researchers, practitioners, and anyone interested in understanding the relationships between different AI evaluation benchmarks.
|
app.py
ADDED
|
@@ -0,0 +1,946 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Interactive Benchmark Explorer
|
| 4 |
+
A comprehensive web application for exploring OpenThoughts benchmark correlations and model performance
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
import streamlit as st
|
| 8 |
+
import pandas as pd
|
| 9 |
+
import numpy as np
|
| 10 |
+
import plotly.express as px
|
| 11 |
+
import plotly.graph_objects as go
|
| 12 |
+
from plotly.subplots import make_subplots
|
| 13 |
+
import seaborn as sns
|
| 14 |
+
import matplotlib.pyplot as plt
|
| 15 |
+
from scipy.stats import pearsonr, spearmanr, kendalltau
|
| 16 |
+
from scipy.optimize import minimize
|
| 17 |
+
import ast
|
| 18 |
+
import io
|
| 19 |
+
import base64
|
| 20 |
+
from itertools import combinations
|
| 21 |
+
import warnings
|
| 22 |
+
warnings.filterwarnings('ignore')
|
| 23 |
+
|
| 24 |
+
# Configure page
|
| 25 |
+
st.set_page_config(
|
| 26 |
+
page_title="OpenThoughts Evalchemy Benchmark Explorer",
|
| 27 |
+
page_icon="📊",
|
| 28 |
+
layout="wide",
|
| 29 |
+
initial_sidebar_state="expanded"
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
# Custom CSS for better styling
|
| 33 |
+
st.markdown("""
|
| 34 |
+
<style>
|
| 35 |
+
.main-header {
|
| 36 |
+
font-size: 2.5rem;
|
| 37 |
+
font-weight: bold;
|
| 38 |
+
color: #1f77b4;
|
| 39 |
+
text-align: center;
|
| 40 |
+
margin-bottom: 2rem;
|
| 41 |
+
}
|
| 42 |
+
.metric-card {
|
| 43 |
+
background-color: #f8f9fa;
|
| 44 |
+
padding: 1rem;
|
| 45 |
+
border-radius: 0.5rem;
|
| 46 |
+
border-left: 4px solid #1f77b4;
|
| 47 |
+
margin: 0.5rem 0;
|
| 48 |
+
}
|
| 49 |
+
.correlation-high { color: #d73027; font-weight: bold; }
|
| 50 |
+
.correlation-medium { color: #fdae61; font-weight: bold; }
|
| 51 |
+
.correlation-low { color: #4575b4; font-weight: bold; }
|
| 52 |
+
.category-math { color: #d73027; font-weight: bold; }
|
| 53 |
+
.category-code { color: #1f78b4; font-weight: bold; }
|
| 54 |
+
.category-science { color: #33a02c; font-weight: bold; }
|
| 55 |
+
.category-general { color: #ff7f00; font-weight: bold; }
|
| 56 |
+
</style>
|
| 57 |
+
""", unsafe_allow_html=True)
|
| 58 |
+
|
| 59 |
+
@st.cache_data
|
| 60 |
+
def load_comprehensive_data():
|
| 61 |
+
"""Load and clean the comprehensive benchmark data."""
|
| 62 |
+
try:
|
| 63 |
+
df = pd.read_csv("comprehensive_benchmark_scores.csv", index_col=0)
|
| 64 |
+
|
| 65 |
+
# Clean the data - handle list-like values stored as strings
|
| 66 |
+
for col in df.columns:
|
| 67 |
+
def extract_value(x):
|
| 68 |
+
if pd.isna(x):
|
| 69 |
+
return np.nan
|
| 70 |
+
if isinstance(x, str) and x.startswith('['):
|
| 71 |
+
try:
|
| 72 |
+
return ast.literal_eval(x)[0]
|
| 73 |
+
except:
|
| 74 |
+
return np.nan
|
| 75 |
+
return x
|
| 76 |
+
|
| 77 |
+
df[col] = df[col].apply(extract_value)
|
| 78 |
+
df[col] = pd.to_numeric(df[col], errors='coerce')
|
| 79 |
+
|
| 80 |
+
# Filter to only models that have data for at least a few benchmarks
|
| 81 |
+
min_benchmarks = 3
|
| 82 |
+
df = df.dropna(thresh=min_benchmarks, axis=0)
|
| 83 |
+
|
| 84 |
+
return df
|
| 85 |
+
except FileNotFoundError:
|
| 86 |
+
st.error("Could not find comprehensive_benchmark_scores.csv. Please ensure the data file exists.")
|
| 87 |
+
return pd.DataFrame()
|
| 88 |
+
|
| 89 |
+
@st.cache_data
|
| 90 |
+
def load_stderr_data():
|
| 91 |
+
"""Load and clean standard error data."""
|
| 92 |
+
try:
|
| 93 |
+
stderr_df = pd.read_csv("benchmark_standard_errors.csv", index_col=0)
|
| 94 |
+
|
| 95 |
+
# Clean the data
|
| 96 |
+
for col in stderr_df.columns:
|
| 97 |
+
def extract_value(x):
|
| 98 |
+
if pd.isna(x):
|
| 99 |
+
return np.nan
|
| 100 |
+
if isinstance(x, str) and x.startswith('['):
|
| 101 |
+
try:
|
| 102 |
+
return ast.literal_eval(x)[0]
|
| 103 |
+
except:
|
| 104 |
+
return np.nan
|
| 105 |
+
return x
|
| 106 |
+
|
| 107 |
+
stderr_df[col] = stderr_df[col].apply(extract_value)
|
| 108 |
+
stderr_df[col] = pd.to_numeric(stderr_df[col], errors='coerce')
|
| 109 |
+
|
| 110 |
+
return stderr_df
|
| 111 |
+
except FileNotFoundError:
|
| 112 |
+
return None
|
| 113 |
+
|
| 114 |
+
def clean_benchmark_name(name):
|
| 115 |
+
"""Clean benchmark names for consistent display."""
|
| 116 |
+
return (name.replace("LiveCodeBench_accuracy_avg", "LiveCodeBenchv2")
|
| 117 |
+
.replace('_accuracy_avg', '')
|
| 118 |
+
.replace('_accuracy', '')
|
| 119 |
+
.replace('LiveCodeBench', 'LCB')
|
| 120 |
+
.replace('GPQADiamond', 'GPQAD')
|
| 121 |
+
)
|
| 122 |
+
|
| 123 |
+
def get_focused_benchmark_mapping():
|
| 124 |
+
"""Define the target benchmarks and categories."""
|
| 125 |
+
target_benchmarks = {
|
| 126 |
+
# Math benchmarks
|
| 127 |
+
'AIME24': 'AIME24_accuracy_avg',
|
| 128 |
+
'AIME25': 'AIME25_accuracy_avg',
|
| 129 |
+
'AMC23': 'AMC23_accuracy_avg',
|
| 130 |
+
'MATH500': 'MATH500_accuracy',
|
| 131 |
+
|
| 132 |
+
# Code benchmarks
|
| 133 |
+
'CodeElo': 'CodeElo_accuracy_avg',
|
| 134 |
+
'CodeForces': 'CodeForces_accuracy_avg',
|
| 135 |
+
'LCBv2': 'LiveCodeBench_accuracy_avg',
|
| 136 |
+
'LCBv5': 'LiveCodeBenchv5_accuracy_avg',
|
| 137 |
+
|
| 138 |
+
# Science benchmarks
|
| 139 |
+
'GPQADiamond': 'GPQADiamond_accuracy_avg',
|
| 140 |
+
'JEEBench': 'JEEBench_accuracy_avg',
|
| 141 |
+
|
| 142 |
+
# General benchmarks
|
| 143 |
+
'MMLUPro': 'MMLUPro_accuracy_avg',
|
| 144 |
+
'HLE': 'HLE_accuracy_avg'
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
benchmark_categories = {
|
| 148 |
+
'Math': ['AIME24', 'AIME25', 'AMC23', 'MATH500'],
|
| 149 |
+
'Code': ['CodeElo', 'CodeForces', 'LCBv2', 'LCBv5'],
|
| 150 |
+
'Science': ['GPQADiamond', 'JEEBench'],
|
| 151 |
+
'General': ['MMLUPro', 'HLE']
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
colors = {'Math': '#d73027', 'Code': '#1f78b4', 'Science': '#33a02c', 'General': '#ff7f00'}
|
| 155 |
+
|
| 156 |
+
# Create reverse mapping
|
| 157 |
+
col_to_category = {}
|
| 158 |
+
for category, bench_list in benchmark_categories.items():
|
| 159 |
+
for bench_name in bench_list:
|
| 160 |
+
actual_name = target_benchmarks.get(bench_name)
|
| 161 |
+
if actual_name:
|
| 162 |
+
col_to_category[actual_name] = category
|
| 163 |
+
|
| 164 |
+
return target_benchmarks, benchmark_categories, colors, col_to_category
|
| 165 |
+
|
| 166 |
+
def compute_correlations(df, method='pearson'):
|
| 167 |
+
"""Compute correlation matrix with the specified method."""
|
| 168 |
+
if method == 'pearson':
|
| 169 |
+
return df.corr(method='pearson')
|
| 170 |
+
elif method == 'spearman':
|
| 171 |
+
return df.corr(method='spearman')
|
| 172 |
+
elif method == 'kendall':
|
| 173 |
+
return df.corr(method='kendall')
|
| 174 |
+
|
| 175 |
+
def create_interactive_heatmap(corr_matrix, title="Correlation Heatmap"):
|
| 176 |
+
"""Create an interactive correlation heatmap using Plotly."""
|
| 177 |
+
target_benchmarks, benchmark_categories, colors, col_to_category = get_focused_benchmark_mapping()
|
| 178 |
+
|
| 179 |
+
# Get clean names for display
|
| 180 |
+
clean_names = [clean_benchmark_name(name) for name in corr_matrix.columns]
|
| 181 |
+
|
| 182 |
+
# Convert to percentages for display
|
| 183 |
+
corr_matrix_pct = (corr_matrix * 100).round(1)
|
| 184 |
+
|
| 185 |
+
# Create hover text
|
| 186 |
+
hover_text = []
|
| 187 |
+
for i, bench1 in enumerate(corr_matrix.columns):
|
| 188 |
+
hover_row = []
|
| 189 |
+
for j, bench2 in enumerate(corr_matrix.columns):
|
| 190 |
+
if i == j:
|
| 191 |
+
hover_row.append(f"{clean_names[i]}<br>Reliability: 100%")
|
| 192 |
+
else:
|
| 193 |
+
corr_val = corr_matrix_pct.iloc[i, j]
|
| 194 |
+
if pd.isna(corr_val):
|
| 195 |
+
hover_row.append(f"{clean_names[i]} vs {clean_names[j]}<br>No data")
|
| 196 |
+
else:
|
| 197 |
+
hover_row.append(f"{clean_names[i]} vs {clean_names[j]}<br>Correlation: {corr_val:.1f}%")
|
| 198 |
+
hover_text.append(hover_row)
|
| 199 |
+
|
| 200 |
+
# Create the heatmap
|
| 201 |
+
fig = go.Figure(data=go.Heatmap(
|
| 202 |
+
z=corr_matrix.values,
|
| 203 |
+
x=clean_names,
|
| 204 |
+
y=clean_names,
|
| 205 |
+
colorscale='RdBu_r',
|
| 206 |
+
zmid=0,
|
| 207 |
+
text=corr_matrix_pct.values,
|
| 208 |
+
texttemplate="%{text}",
|
| 209 |
+
textfont={"size": 10},
|
| 210 |
+
hoverinfo='text',
|
| 211 |
+
hovertext=hover_text,
|
| 212 |
+
colorbar=dict(title="Correlation", tickformat=".2f")
|
| 213 |
+
))
|
| 214 |
+
|
| 215 |
+
# Update layout
|
| 216 |
+
fig.update_layout(
|
| 217 |
+
title=title,
|
| 218 |
+
xaxis_title="",
|
| 219 |
+
yaxis_title="",
|
| 220 |
+
width=800,
|
| 221 |
+
height=800,
|
| 222 |
+
font=dict(size=12)
|
| 223 |
+
)
|
| 224 |
+
|
| 225 |
+
# Color the axis labels by category
|
| 226 |
+
for i, bench in enumerate(corr_matrix.columns):
|
| 227 |
+
category = col_to_category.get(bench, 'Unknown')
|
| 228 |
+
color = colors.get(category, 'black')
|
| 229 |
+
|
| 230 |
+
return fig
|
| 231 |
+
|
| 232 |
+
def create_scatter_plot(df, x_bench, y_bench, stderr_df=None):
|
| 233 |
+
"""Create an interactive scatter plot between two benchmarks."""
|
| 234 |
+
if x_bench not in df.columns or y_bench not in df.columns:
|
| 235 |
+
return None
|
| 236 |
+
|
| 237 |
+
# Get common data
|
| 238 |
+
common_data = df[[x_bench, y_bench]].dropna()
|
| 239 |
+
|
| 240 |
+
if len(common_data) < 3:
|
| 241 |
+
return None
|
| 242 |
+
|
| 243 |
+
x_vals = common_data[x_bench]
|
| 244 |
+
y_vals = common_data[y_bench]
|
| 245 |
+
|
| 246 |
+
# Calculate correlation
|
| 247 |
+
corr, p_val = pearsonr(x_vals, y_vals)
|
| 248 |
+
|
| 249 |
+
# Create figure
|
| 250 |
+
fig = go.Figure()
|
| 251 |
+
|
| 252 |
+
# Add scatter points
|
| 253 |
+
fig.add_trace(go.Scatter(
|
| 254 |
+
x=x_vals,
|
| 255 |
+
y=y_vals,
|
| 256 |
+
mode='markers',
|
| 257 |
+
text=common_data.index,
|
| 258 |
+
hovertemplate=(
|
| 259 |
+
"<b>%{text}</b><br>" +
|
| 260 |
+
f"{clean_benchmark_name(x_bench)}: %{{x:.3f}}<br>" +
|
| 261 |
+
f"{clean_benchmark_name(y_bench)}: %{{y:.3f}}<br>" +
|
| 262 |
+
"<extra></extra>"
|
| 263 |
+
),
|
| 264 |
+
marker=dict(size=8, opacity=0.7, color='steelblue')
|
| 265 |
+
))
|
| 266 |
+
|
| 267 |
+
# Add regression line
|
| 268 |
+
z = np.polyfit(x_vals, y_vals, 1)
|
| 269 |
+
p = np.poly1d(z)
|
| 270 |
+
x_line = np.linspace(x_vals.min(), x_vals.max(), 100)
|
| 271 |
+
|
| 272 |
+
fig.add_trace(go.Scatter(
|
| 273 |
+
x=x_line,
|
| 274 |
+
y=p(x_line),
|
| 275 |
+
mode='lines',
|
| 276 |
+
name=f'r = {corr:.3f}, p = {p_val:.3f}',
|
| 277 |
+
line=dict(color='red', dash='dash')
|
| 278 |
+
))
|
| 279 |
+
|
| 280 |
+
# Update layout
|
| 281 |
+
fig.update_layout(
|
| 282 |
+
title=f"{clean_benchmark_name(y_bench)} vs {clean_benchmark_name(x_bench)}",
|
| 283 |
+
xaxis_title=clean_benchmark_name(x_bench),
|
| 284 |
+
yaxis_title=clean_benchmark_name(y_bench),
|
| 285 |
+
showlegend=True,
|
| 286 |
+
width=600,
|
| 287 |
+
height=500
|
| 288 |
+
)
|
| 289 |
+
|
| 290 |
+
return fig
|
| 291 |
+
|
| 292 |
+
def filter_target_benchmarks(df):
|
| 293 |
+
"""Filter dataframe to only include target benchmarks."""
|
| 294 |
+
target_benchmarks, _, _, _ = get_focused_benchmark_mapping()
|
| 295 |
+
|
| 296 |
+
available_benchmarks = []
|
| 297 |
+
for display_name, actual_name in target_benchmarks.items():
|
| 298 |
+
if actual_name in df.columns:
|
| 299 |
+
available_benchmarks.append(actual_name)
|
| 300 |
+
|
| 301 |
+
return df[available_benchmarks].copy()
|
| 302 |
+
|
| 303 |
+
def main():
|
| 304 |
+
"""Main application."""
|
| 305 |
+
|
| 306 |
+
# Header
|
| 307 |
+
st.markdown('<div class="main-header">🔬 OpenThoughts Evalchemy Benchmark Explorer</div>', unsafe_allow_html=True)
|
| 308 |
+
st.markdown("**Explore correlations and relationships between OpenThoughts model performance across different benchmarks**")
|
| 309 |
+
|
| 310 |
+
# Load data
|
| 311 |
+
with st.spinner("Loading benchmark data..."):
|
| 312 |
+
df = load_comprehensive_data()
|
| 313 |
+
stderr_df = load_stderr_data()
|
| 314 |
+
|
| 315 |
+
if df.empty:
|
| 316 |
+
st.error("No data available. Please check that the data files exist.")
|
| 317 |
+
return
|
| 318 |
+
|
| 319 |
+
# Filter to target benchmarks
|
| 320 |
+
df_filtered = filter_target_benchmarks(df)
|
| 321 |
+
target_benchmarks, benchmark_categories, colors, col_to_category = get_focused_benchmark_mapping()
|
| 322 |
+
|
| 323 |
+
# Sidebar
|
| 324 |
+
st.sidebar.header("🎛️ Controls")
|
| 325 |
+
|
| 326 |
+
# Analysis mode selection
|
| 327 |
+
analysis_mode = st.sidebar.selectbox(
|
| 328 |
+
"Choose Analysis Mode",
|
| 329 |
+
["📊 Overview Dashboard", "🔥 Interactive Heatmap", "📈 Scatter Plot Explorer",
|
| 330 |
+
"🎯 Model Performance", "📋 Statistical Summary", "🔬 Uncertainty Analysis"]
|
| 331 |
+
)
|
| 332 |
+
|
| 333 |
+
# Data filtering options
|
| 334 |
+
st.sidebar.subheader("Data Filters")
|
| 335 |
+
|
| 336 |
+
# Category filter
|
| 337 |
+
selected_categories = st.sidebar.multiselect(
|
| 338 |
+
"Select Benchmark Categories",
|
| 339 |
+
list(benchmark_categories.keys()),
|
| 340 |
+
default=list(benchmark_categories.keys())
|
| 341 |
+
)
|
| 342 |
+
|
| 343 |
+
# Filter benchmarks based on selected categories
|
| 344 |
+
filtered_benchmarks = []
|
| 345 |
+
for category in selected_categories:
|
| 346 |
+
for bench_name in benchmark_categories[category]:
|
| 347 |
+
actual_name = target_benchmarks.get(bench_name)
|
| 348 |
+
if actual_name in df_filtered.columns:
|
| 349 |
+
filtered_benchmarks.append(actual_name)
|
| 350 |
+
|
| 351 |
+
if filtered_benchmarks:
|
| 352 |
+
df_display = df_filtered[filtered_benchmarks].copy()
|
| 353 |
+
else:
|
| 354 |
+
df_display = df_filtered.copy()
|
| 355 |
+
|
| 356 |
+
# Zero filtering
|
| 357 |
+
filter_zeros = st.sidebar.checkbox("Filter out zero/near-zero values", value=False)
|
| 358 |
+
if filter_zeros:
|
| 359 |
+
for col in df_display.columns:
|
| 360 |
+
df_display.loc[(df_display[col] == 0) | (df_display[col] < 0.01), col] = np.nan
|
| 361 |
+
|
| 362 |
+
# Minimum data points filter
|
| 363 |
+
coverage_counts = [df_display[col].notna().sum() for col in df_display.columns]
|
| 364 |
+
if coverage_counts:
|
| 365 |
+
min_coverage = min(coverage_counts)
|
| 366 |
+
max_coverage = max(coverage_counts)
|
| 367 |
+
default_min = max(10, min_coverage) # Default to at least 10 or minimum available
|
| 368 |
+
|
| 369 |
+
min_models = st.sidebar.slider(
|
| 370 |
+
"Minimum models per benchmark",
|
| 371 |
+
min_value=min_coverage,
|
| 372 |
+
max_value=max_coverage,
|
| 373 |
+
value=default_min,
|
| 374 |
+
help=f"Range: {min_coverage} to {max_coverage} models"
|
| 375 |
+
)
|
| 376 |
+
else:
|
| 377 |
+
min_models = 10
|
| 378 |
+
|
| 379 |
+
# Apply the minimum models filter
|
| 380 |
+
valid_benchmarks = []
|
| 381 |
+
for col in df_display.columns:
|
| 382 |
+
if df_display[col].notna().sum() >= min_models:
|
| 383 |
+
valid_benchmarks.append(col)
|
| 384 |
+
df_display = df_display[valid_benchmarks]
|
| 385 |
+
|
| 386 |
+
# Main content based on analysis mode
|
| 387 |
+
if analysis_mode == "📊 Overview Dashboard":
|
| 388 |
+
show_overview_dashboard(df_display, stderr_df)
|
| 389 |
+
|
| 390 |
+
elif analysis_mode == "🔥 Interactive Heatmap":
|
| 391 |
+
show_interactive_heatmap(df_display)
|
| 392 |
+
|
| 393 |
+
elif analysis_mode == "📈 Scatter Plot Explorer":
|
| 394 |
+
show_scatter_explorer(df_display, stderr_df)
|
| 395 |
+
|
| 396 |
+
elif analysis_mode == "🎯 Model Performance":
|
| 397 |
+
show_model_performance(df_display)
|
| 398 |
+
|
| 399 |
+
elif analysis_mode == "📋 Statistical Summary":
|
| 400 |
+
show_statistical_summary(df_display)
|
| 401 |
+
|
| 402 |
+
elif analysis_mode == "🔬 Uncertainty Analysis":
|
| 403 |
+
show_uncertainty_analysis(df_display, stderr_df)
|
| 404 |
+
|
| 405 |
+
def show_overview_dashboard(df, stderr_df):
|
| 406 |
+
"""Show the overview dashboard."""
|
| 407 |
+
st.header("📊 Overview Dashboard")
|
| 408 |
+
|
| 409 |
+
# Key metrics
|
| 410 |
+
col1, col2, col3, col4 = st.columns(4)
|
| 411 |
+
|
| 412 |
+
with col1:
|
| 413 |
+
st.metric("Models", len(df))
|
| 414 |
+
|
| 415 |
+
with col2:
|
| 416 |
+
st.metric("Benchmarks", len(df.columns))
|
| 417 |
+
|
| 418 |
+
with col3:
|
| 419 |
+
total_evals = df.notna().sum().sum()
|
| 420 |
+
st.metric("Total Evaluations", f"{total_evals:,}")
|
| 421 |
+
|
| 422 |
+
with col4:
|
| 423 |
+
avg_coverage = (df.notna().sum() / len(df)).mean() * 100
|
| 424 |
+
st.metric("Avg Coverage", f"{avg_coverage:.1f}%")
|
| 425 |
+
|
| 426 |
+
# Benchmark coverage chart
|
| 427 |
+
st.subheader("Benchmark Coverage")
|
| 428 |
+
|
| 429 |
+
coverage_data = []
|
| 430 |
+
target_benchmarks, benchmark_categories, colors, col_to_category = get_focused_benchmark_mapping()
|
| 431 |
+
|
| 432 |
+
for col in df.columns:
|
| 433 |
+
coverage = df[col].notna().sum()
|
| 434 |
+
category = col_to_category.get(col, 'Unknown')
|
| 435 |
+
clean_name = clean_benchmark_name(col)
|
| 436 |
+
coverage_data.append({
|
| 437 |
+
'Benchmark': clean_name,
|
| 438 |
+
'Coverage': coverage,
|
| 439 |
+
'Percentage': coverage / len(df) * 100,
|
| 440 |
+
'Category': category
|
| 441 |
+
})
|
| 442 |
+
|
| 443 |
+
coverage_df = pd.DataFrame(coverage_data).sort_values('Coverage', ascending=True)
|
| 444 |
+
|
| 445 |
+
fig = px.bar(coverage_df,
|
| 446 |
+
x='Coverage',
|
| 447 |
+
y='Benchmark',
|
| 448 |
+
color='Category',
|
| 449 |
+
color_discrete_map=colors,
|
| 450 |
+
title="Model Coverage by Benchmark",
|
| 451 |
+
labels={'Coverage': 'Number of Models'},
|
| 452 |
+
orientation='h')
|
| 453 |
+
|
| 454 |
+
fig.update_layout(height=400)
|
| 455 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 456 |
+
|
| 457 |
+
# Quick correlation insights
|
| 458 |
+
st.subheader("Quick Correlation Insights")
|
| 459 |
+
|
| 460 |
+
corr_matrix = compute_correlations(df, 'pearson')
|
| 461 |
+
|
| 462 |
+
# Get top correlations
|
| 463 |
+
pairs = []
|
| 464 |
+
for i, bench1 in enumerate(corr_matrix.columns):
|
| 465 |
+
for j, bench2 in enumerate(corr_matrix.columns[i+1:], i+1):
|
| 466 |
+
if not pd.isna(corr_matrix.iloc[i, j]):
|
| 467 |
+
cat1 = col_to_category.get(bench1, 'Unknown')
|
| 468 |
+
cat2 = col_to_category.get(bench2, 'Unknown')
|
| 469 |
+
pairs.append((bench1, bench2, corr_matrix.iloc[i, j], cat1, cat2))
|
| 470 |
+
|
| 471 |
+
pairs.sort(key=lambda x: abs(x[2]), reverse=True)
|
| 472 |
+
|
| 473 |
+
col1, col2 = st.columns(2)
|
| 474 |
+
|
| 475 |
+
with col1:
|
| 476 |
+
st.markdown("**🔥 Top 5 Highest Correlations**")
|
| 477 |
+
for i, (bench1, bench2, corr, cat1, cat2) in enumerate(pairs[:5]):
|
| 478 |
+
same_cat = "✅" if cat1 == cat2 else "🔀"
|
| 479 |
+
st.write(f"{i+1}. {clean_benchmark_name(bench1)} ↔ {clean_benchmark_name(bench2)}")
|
| 480 |
+
st.write(f" r = {corr:.3f} {same_cat}")
|
| 481 |
+
|
| 482 |
+
with col2:
|
| 483 |
+
st.markdown("**📊 Category Analysis**")
|
| 484 |
+
within_cat = [p[2] for p in pairs if p[3] == p[4]]
|
| 485 |
+
across_cat = [p[2] for p in pairs if p[3] != p[4]]
|
| 486 |
+
|
| 487 |
+
if within_cat:
|
| 488 |
+
st.write(f"Within-category avg: {np.mean(within_cat):.3f}")
|
| 489 |
+
if across_cat:
|
| 490 |
+
st.write(f"Across-category avg: {np.mean(across_cat):.3f}")
|
| 491 |
+
|
| 492 |
+
st.write(f"Total pairs analyzed: {len(pairs)}")
|
| 493 |
+
|
| 494 |
+
def show_interactive_heatmap(df):
|
| 495 |
+
"""Show the interactive heatmap."""
|
| 496 |
+
st.header("🔥 Interactive Correlation Heatmap")
|
| 497 |
+
|
| 498 |
+
# Correlation method selection
|
| 499 |
+
col1, col2 = st.columns([3, 1])
|
| 500 |
+
|
| 501 |
+
with col2:
|
| 502 |
+
corr_method = st.selectbox(
|
| 503 |
+
"Correlation Method",
|
| 504 |
+
["pearson", "spearman", "kendall"]
|
| 505 |
+
)
|
| 506 |
+
|
| 507 |
+
# Compute correlation matrix
|
| 508 |
+
corr_matrix = compute_correlations(df, corr_method)
|
| 509 |
+
|
| 510 |
+
# Create and display heatmap
|
| 511 |
+
fig = create_interactive_heatmap(corr_matrix, f"{corr_method.capitalize()} Correlation Matrix")
|
| 512 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 513 |
+
|
| 514 |
+
# Correlation statistics
|
| 515 |
+
st.subheader("Correlation Statistics")
|
| 516 |
+
|
| 517 |
+
# Get all off-diagonal correlations
|
| 518 |
+
mask = np.triu(np.ones_like(corr_matrix, dtype=bool), k=1)
|
| 519 |
+
corr_values = corr_matrix.where(mask).stack().dropna()
|
| 520 |
+
|
| 521 |
+
col1, col2, col3, col4 = st.columns(4)
|
| 522 |
+
|
| 523 |
+
with col1:
|
| 524 |
+
st.metric("Mean Correlation", f"{corr_values.mean():.3f}")
|
| 525 |
+
|
| 526 |
+
with col2:
|
| 527 |
+
st.metric("Median Correlation", f"{corr_values.median():.3f}")
|
| 528 |
+
|
| 529 |
+
with col3:
|
| 530 |
+
st.metric("Max Correlation", f"{corr_values.max():.3f}")
|
| 531 |
+
|
| 532 |
+
with col4:
|
| 533 |
+
st.metric("Min Correlation", f"{corr_values.min():.3f}")
|
| 534 |
+
|
| 535 |
+
# Distribution of correlations
|
| 536 |
+
st.subheader("Correlation Distribution")
|
| 537 |
+
|
| 538 |
+
fig = px.histogram(corr_values,
|
| 539 |
+
nbins=20,
|
| 540 |
+
title="Distribution of Pairwise Correlations",
|
| 541 |
+
labels={'value': 'Correlation Coefficient', 'count': 'Frequency'})
|
| 542 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 543 |
+
|
| 544 |
+
def show_scatter_explorer(df, stderr_df):
|
| 545 |
+
"""Show the scatter plot explorer."""
|
| 546 |
+
st.header("📈 Scatter Plot Explorer")
|
| 547 |
+
|
| 548 |
+
# Benchmark selection
|
| 549 |
+
col1, col2 = st.columns(2)
|
| 550 |
+
|
| 551 |
+
with col1:
|
| 552 |
+
x_benchmark = st.selectbox(
|
| 553 |
+
"X-axis Benchmark",
|
| 554 |
+
df.columns,
|
| 555 |
+
format_func=clean_benchmark_name
|
| 556 |
+
)
|
| 557 |
+
|
| 558 |
+
with col2:
|
| 559 |
+
y_benchmark = st.selectbox(
|
| 560 |
+
"Y-axis Benchmark",
|
| 561 |
+
df.columns,
|
| 562 |
+
index=1 if len(df.columns) > 1 else 0,
|
| 563 |
+
format_func=clean_benchmark_name
|
| 564 |
+
)
|
| 565 |
+
|
| 566 |
+
if x_benchmark and y_benchmark and x_benchmark != y_benchmark:
|
| 567 |
+
# Create scatter plot
|
| 568 |
+
fig = create_scatter_plot(df, x_benchmark, y_benchmark, stderr_df)
|
| 569 |
+
|
| 570 |
+
if fig:
|
| 571 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 572 |
+
|
| 573 |
+
# Additional statistics
|
| 574 |
+
common_data = df[[x_benchmark, y_benchmark]].dropna()
|
| 575 |
+
|
| 576 |
+
if len(common_data) >= 3:
|
| 577 |
+
col1, col2, col3 = st.columns(3)
|
| 578 |
+
|
| 579 |
+
# Correlation metrics
|
| 580 |
+
pearson_r, pearson_p = pearsonr(common_data[x_benchmark], common_data[y_benchmark])
|
| 581 |
+
spearman_r, spearman_p = spearmanr(common_data[x_benchmark], common_data[y_benchmark])
|
| 582 |
+
kendall_r, kendall_p = kendalltau(common_data[x_benchmark], common_data[y_benchmark])
|
| 583 |
+
|
| 584 |
+
with col1:
|
| 585 |
+
st.metric("Pearson r", f"{pearson_r:.3f}")
|
| 586 |
+
st.caption(f"p = {pearson_p:.3f}")
|
| 587 |
+
|
| 588 |
+
with col2:
|
| 589 |
+
st.metric("Spearman ρ", f"{spearman_r:.3f}")
|
| 590 |
+
st.caption(f"p = {spearman_p:.3f}")
|
| 591 |
+
|
| 592 |
+
with col3:
|
| 593 |
+
st.metric("Kendall τ", f"{kendall_r:.3f}")
|
| 594 |
+
st.caption(f"p = {kendall_p:.3f}")
|
| 595 |
+
|
| 596 |
+
# Show data table
|
| 597 |
+
st.subheader("Data Points")
|
| 598 |
+
display_data = common_data.copy()
|
| 599 |
+
display_data.columns = [clean_benchmark_name(col) for col in display_data.columns]
|
| 600 |
+
st.dataframe(display_data, use_container_width=True)
|
| 601 |
+
else:
|
| 602 |
+
st.warning("Insufficient data for the selected benchmark pair.")
|
| 603 |
+
else:
|
| 604 |
+
st.info("Please select two different benchmarks to compare.")
|
| 605 |
+
|
| 606 |
+
def show_model_performance(df):
|
| 607 |
+
"""Show model performance analysis."""
|
| 608 |
+
st.header("🎯 Model Performance Analysis")
|
| 609 |
+
|
| 610 |
+
# Model search
|
| 611 |
+
search_term = st.text_input("🔍 Search for models", placeholder="Enter model name or part of name")
|
| 612 |
+
|
| 613 |
+
if search_term:
|
| 614 |
+
matching_models = df.index[df.index.str.contains(search_term, case=False, na=False)]
|
| 615 |
+
if len(matching_models) > 0:
|
| 616 |
+
df_display = df.loc[matching_models]
|
| 617 |
+
else:
|
| 618 |
+
st.warning(f"No models found matching '{search_term}'")
|
| 619 |
+
df_display = df
|
| 620 |
+
else:
|
| 621 |
+
df_display = df
|
| 622 |
+
|
| 623 |
+
# Performance ranking
|
| 624 |
+
st.subheader("Model Rankings")
|
| 625 |
+
|
| 626 |
+
# Calculate average performance (excluding NaN)
|
| 627 |
+
model_avg_scores = df_display.mean(axis=1, skipna=True).sort_values(ascending=False)
|
| 628 |
+
|
| 629 |
+
# Top performers
|
| 630 |
+
col1, col2 = st.columns(2)
|
| 631 |
+
|
| 632 |
+
with col1:
|
| 633 |
+
st.markdown("**🏆 Top 10 Models (by average score)**")
|
| 634 |
+
for i, (model, score) in enumerate(model_avg_scores.head(10).items()):
|
| 635 |
+
st.write(f"{i+1}. {model.split('/')[-1]}: {score:.3f}")
|
| 636 |
+
|
| 637 |
+
with col2:
|
| 638 |
+
st.markdown("**📊 Performance Distribution**")
|
| 639 |
+
fig = px.histogram(model_avg_scores,
|
| 640 |
+
nbins=20,
|
| 641 |
+
title="Distribution of Average Model Scores")
|
| 642 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 643 |
+
|
| 644 |
+
# Model comparison
|
| 645 |
+
st.subheader("Model Comparison")
|
| 646 |
+
|
| 647 |
+
selected_models = st.multiselect(
|
| 648 |
+
"Select models to compare",
|
| 649 |
+
df_display.index.tolist(),
|
| 650 |
+
default=model_avg_scores.head(3).index.tolist()
|
| 651 |
+
)
|
| 652 |
+
|
| 653 |
+
if selected_models:
|
| 654 |
+
comparison_data = df_display.loc[selected_models].T
|
| 655 |
+
comparison_data.index = [clean_benchmark_name(idx) for idx in comparison_data.index]
|
| 656 |
+
|
| 657 |
+
# Radar chart
|
| 658 |
+
if len(selected_models) <= 5: # Only for manageable number of models
|
| 659 |
+
fig = go.Figure()
|
| 660 |
+
|
| 661 |
+
for model in selected_models:
|
| 662 |
+
model_data = df_display.loc[model].dropna()
|
| 663 |
+
benchmarks = [clean_benchmark_name(b) for b in model_data.index]
|
| 664 |
+
values = model_data.values.tolist()
|
| 665 |
+
|
| 666 |
+
# Close the radar chart
|
| 667 |
+
values += values[:1]
|
| 668 |
+
benchmarks += benchmarks[:1]
|
| 669 |
+
|
| 670 |
+
fig.add_trace(go.Scatterpolar(
|
| 671 |
+
r=values,
|
| 672 |
+
theta=benchmarks,
|
| 673 |
+
fill='toself',
|
| 674 |
+
name=model.split('/')[-1]
|
| 675 |
+
))
|
| 676 |
+
|
| 677 |
+
fig.update_layout(
|
| 678 |
+
polar=dict(
|
| 679 |
+
radialaxis=dict(
|
| 680 |
+
visible=True,
|
| 681 |
+
range=[0, 1]
|
| 682 |
+
)),
|
| 683 |
+
showlegend=True,
|
| 684 |
+
title="Model Performance Radar Chart"
|
| 685 |
+
)
|
| 686 |
+
|
| 687 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 688 |
+
|
| 689 |
+
# Detailed comparison table
|
| 690 |
+
st.subheader("Detailed Comparison")
|
| 691 |
+
st.dataframe(comparison_data, use_container_width=True)
|
| 692 |
+
|
| 693 |
+
def show_statistical_summary(df):
|
| 694 |
+
"""Show statistical summary."""
|
| 695 |
+
st.header("📋 Statistical Summary")
|
| 696 |
+
|
| 697 |
+
# Overall statistics
|
| 698 |
+
st.subheader("Dataset Statistics")
|
| 699 |
+
|
| 700 |
+
col1, col2 = st.columns(2)
|
| 701 |
+
|
| 702 |
+
with col1:
|
| 703 |
+
st.markdown("**Data Coverage**")
|
| 704 |
+
total_possible = len(df) * len(df.columns)
|
| 705 |
+
total_actual = df.notna().sum().sum()
|
| 706 |
+
coverage_pct = (total_actual / total_possible) * 100
|
| 707 |
+
|
| 708 |
+
st.write(f"Total possible evaluations: {total_possible:,}")
|
| 709 |
+
st.write(f"Actual evaluations: {total_actual:,}")
|
| 710 |
+
st.write(f"Overall coverage: {coverage_pct:.1f}%")
|
| 711 |
+
|
| 712 |
+
with col2:
|
| 713 |
+
st.markdown("**Score Statistics**")
|
| 714 |
+
all_scores = df.values.flatten()
|
| 715 |
+
all_scores = all_scores[~pd.isna(all_scores)]
|
| 716 |
+
|
| 717 |
+
st.write(f"Mean score: {np.mean(all_scores):.3f}")
|
| 718 |
+
st.write(f"Median score: {np.median(all_scores):.3f}")
|
| 719 |
+
st.write(f"Std deviation: {np.std(all_scores):.3f}")
|
| 720 |
+
|
| 721 |
+
# Benchmark-wise statistics
|
| 722 |
+
st.subheader("Benchmark Statistics")
|
| 723 |
+
|
| 724 |
+
benchmark_stats = []
|
| 725 |
+
target_benchmarks, benchmark_categories, colors, col_to_category = get_focused_benchmark_mapping()
|
| 726 |
+
|
| 727 |
+
for col in df.columns:
|
| 728 |
+
scores = df[col].dropna()
|
| 729 |
+
if len(scores) > 0:
|
| 730 |
+
benchmark_stats.append({
|
| 731 |
+
'Benchmark': clean_benchmark_name(col),
|
| 732 |
+
'Category': col_to_category.get(col, 'Unknown'),
|
| 733 |
+
'Count': len(scores),
|
| 734 |
+
'Mean': scores.mean(),
|
| 735 |
+
'Median': scores.median(),
|
| 736 |
+
'Std': scores.std(),
|
| 737 |
+
'Min': scores.min(),
|
| 738 |
+
'Max': scores.max(),
|
| 739 |
+
'Range': scores.max() - scores.min()
|
| 740 |
+
})
|
| 741 |
+
|
| 742 |
+
stats_df = pd.DataFrame(benchmark_stats)
|
| 743 |
+
st.dataframe(stats_df, use_container_width=True)
|
| 744 |
+
|
| 745 |
+
# Correlation summary
|
| 746 |
+
st.subheader("Correlation Analysis Summary")
|
| 747 |
+
|
| 748 |
+
for method in ['pearson', 'spearman', 'kendall']:
|
| 749 |
+
corr_matrix = compute_correlations(df, method)
|
| 750 |
+
|
| 751 |
+
# Get all off-diagonal correlations
|
| 752 |
+
mask = np.triu(np.ones_like(corr_matrix, dtype=bool), k=1)
|
| 753 |
+
corr_values = corr_matrix.where(mask).stack().dropna()
|
| 754 |
+
|
| 755 |
+
st.write(f"**{method.capitalize()} Correlations:**")
|
| 756 |
+
col1, col2, col3, col4 = st.columns(4)
|
| 757 |
+
|
| 758 |
+
with col1:
|
| 759 |
+
st.metric("Mean", f"{corr_values.mean():.3f}")
|
| 760 |
+
with col2:
|
| 761 |
+
st.metric("Median", f"{corr_values.median():.3f}")
|
| 762 |
+
with col3:
|
| 763 |
+
st.metric("Max", f"{corr_values.max():.3f}")
|
| 764 |
+
with col4:
|
| 765 |
+
st.metric("Min", f"{corr_values.min():.3f}")
|
| 766 |
+
|
| 767 |
+
def show_uncertainty_analysis(df, stderr_df):
|
| 768 |
+
"""Show uncertainty analysis if standard error data is available."""
|
| 769 |
+
st.header("🔬 Uncertainty Analysis")
|
| 770 |
+
|
| 771 |
+
if stderr_df is None:
|
| 772 |
+
st.warning("Standard error data not available. This analysis requires benchmark_standard_errors.csv")
|
| 773 |
+
return
|
| 774 |
+
|
| 775 |
+
st.info("This section analyzes measurement uncertainty and reliability of benchmark evaluations.")
|
| 776 |
+
|
| 777 |
+
# Match benchmarks with standard errors
|
| 778 |
+
matched_benchmarks = []
|
| 779 |
+
for score_col in df.columns:
|
| 780 |
+
# Try to find matching stderr column
|
| 781 |
+
potential_stderr_cols = [
|
| 782 |
+
f"{score_col}_std_err",
|
| 783 |
+
f"{score_col.replace('_accuracy', '_accuracy_std_err')}",
|
| 784 |
+
f"{score_col.replace('_accuracy_avg', '_accuracy_std_err')}"
|
| 785 |
+
]
|
| 786 |
+
|
| 787 |
+
for stderr_col in potential_stderr_cols:
|
| 788 |
+
if stderr_col in stderr_df.columns:
|
| 789 |
+
matched_benchmarks.append((score_col, stderr_col))
|
| 790 |
+
break
|
| 791 |
+
|
| 792 |
+
if not matched_benchmarks:
|
| 793 |
+
st.warning("No matching standard error data found for the selected benchmarks.")
|
| 794 |
+
return
|
| 795 |
+
|
| 796 |
+
st.success(f"Found standard error data for {len(matched_benchmarks)} benchmarks.")
|
| 797 |
+
|
| 798 |
+
# Measurement precision analysis
|
| 799 |
+
st.subheader("Measurement Precision")
|
| 800 |
+
|
| 801 |
+
precision_data = []
|
| 802 |
+
for score_col, stderr_col in matched_benchmarks:
|
| 803 |
+
scores = df[score_col].dropna()
|
| 804 |
+
stderrs = stderr_df[stderr_col].dropna()
|
| 805 |
+
|
| 806 |
+
if len(stderrs) > 0:
|
| 807 |
+
mean_stderr = stderrs.mean()
|
| 808 |
+
median_stderr = stderrs.median()
|
| 809 |
+
|
| 810 |
+
# Signal-to-noise ratio
|
| 811 |
+
if len(scores) > 0:
|
| 812 |
+
signal_std = scores.std()
|
| 813 |
+
snr = signal_std / mean_stderr if mean_stderr > 0 else float('inf')
|
| 814 |
+
else:
|
| 815 |
+
snr = 0
|
| 816 |
+
|
| 817 |
+
precision_data.append({
|
| 818 |
+
'Benchmark': clean_benchmark_name(score_col),
|
| 819 |
+
'Mean StdErr': mean_stderr,
|
| 820 |
+
'Median StdErr': median_stderr,
|
| 821 |
+
'Signal/Noise': snr,
|
| 822 |
+
'N Models': len(stderrs)
|
| 823 |
+
})
|
| 824 |
+
|
| 825 |
+
if precision_data:
|
| 826 |
+
precision_df = pd.DataFrame(precision_data)
|
| 827 |
+
st.dataframe(precision_df, use_container_width=True)
|
| 828 |
+
|
| 829 |
+
# Visualization
|
| 830 |
+
fig = px.scatter(precision_df,
|
| 831 |
+
x='Mean StdErr',
|
| 832 |
+
y='Signal/Noise',
|
| 833 |
+
size='N Models',
|
| 834 |
+
hover_name='Benchmark',
|
| 835 |
+
title="Measurement Precision: Signal-to-Noise vs Standard Error",
|
| 836 |
+
labels={'Signal/Noise': 'Signal-to-Noise Ratio'})
|
| 837 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 838 |
+
|
| 839 |
+
# Uncertainty-aware scatter plot
|
| 840 |
+
st.subheader("Uncertainty-Aware Scatter Plot")
|
| 841 |
+
|
| 842 |
+
# Let user select benchmarks with stderr data
|
| 843 |
+
available_benchmarks = [score_col for score_col, _ in matched_benchmarks]
|
| 844 |
+
|
| 845 |
+
col1, col2 = st.columns(2)
|
| 846 |
+
|
| 847 |
+
with col1:
|
| 848 |
+
x_bench = st.selectbox(
|
| 849 |
+
"X-axis Benchmark (with uncertainty)",
|
| 850 |
+
available_benchmarks,
|
| 851 |
+
format_func=clean_benchmark_name
|
| 852 |
+
)
|
| 853 |
+
|
| 854 |
+
with col2:
|
| 855 |
+
y_bench = st.selectbox(
|
| 856 |
+
"Y-axis Benchmark (with uncertainty)",
|
| 857 |
+
available_benchmarks,
|
| 858 |
+
index=1 if len(available_benchmarks) > 1 else 0,
|
| 859 |
+
format_func=clean_benchmark_name
|
| 860 |
+
)
|
| 861 |
+
|
| 862 |
+
if x_bench and y_bench and x_bench != y_bench:
|
| 863 |
+
# Find corresponding stderr columns
|
| 864 |
+
x_stderr_col = None
|
| 865 |
+
y_stderr_col = None
|
| 866 |
+
|
| 867 |
+
for score_col, stderr_col in matched_benchmarks:
|
| 868 |
+
if score_col == x_bench:
|
| 869 |
+
x_stderr_col = stderr_col
|
| 870 |
+
if score_col == y_bench:
|
| 871 |
+
y_stderr_col = stderr_col
|
| 872 |
+
|
| 873 |
+
if x_stderr_col and y_stderr_col:
|
| 874 |
+
# Get data
|
| 875 |
+
x_scores = df[x_bench]
|
| 876 |
+
y_scores = df[y_bench]
|
| 877 |
+
x_err = stderr_df[x_stderr_col]
|
| 878 |
+
y_err = stderr_df[y_stderr_col]
|
| 879 |
+
|
| 880 |
+
# Find common valid data
|
| 881 |
+
valid_mask = ~(x_scores.isna() | y_scores.isna() | x_err.isna() | y_err.isna())
|
| 882 |
+
|
| 883 |
+
if valid_mask.sum() >= 3:
|
| 884 |
+
x_clean = x_scores[valid_mask]
|
| 885 |
+
y_clean = y_scores[valid_mask]
|
| 886 |
+
x_err_clean = x_err[valid_mask]
|
| 887 |
+
y_err_clean = y_err[valid_mask]
|
| 888 |
+
|
| 889 |
+
# Create uncertainty scatter plot
|
| 890 |
+
fig = go.Figure()
|
| 891 |
+
|
| 892 |
+
# Add error bars
|
| 893 |
+
fig.add_trace(go.Scatter(
|
| 894 |
+
x=x_clean,
|
| 895 |
+
y=y_clean,
|
| 896 |
+
error_x=dict(
|
| 897 |
+
type='data',
|
| 898 |
+
array=1.96 * x_err_clean, # 95% CI
|
| 899 |
+
visible=True
|
| 900 |
+
),
|
| 901 |
+
error_y=dict(
|
| 902 |
+
type='data',
|
| 903 |
+
array=1.96 * y_err_clean, # 95% CI
|
| 904 |
+
visible=True
|
| 905 |
+
),
|
| 906 |
+
mode='markers',
|
| 907 |
+
text=x_clean.index,
|
| 908 |
+
hovertemplate=(
|
| 909 |
+
"<b>%{text}</b><br>" +
|
| 910 |
+
f"{clean_benchmark_name(x_bench)}: %{{x:.3f}} ± %{{error_x:.3f}}<br>" +
|
| 911 |
+
f"{clean_benchmark_name(y_bench)}: %{{y:.3f}} ± %{{error_y:.3f}}<br>" +
|
| 912 |
+
"<extra></extra>"
|
| 913 |
+
),
|
| 914 |
+
marker=dict(size=8, opacity=0.7),
|
| 915 |
+
name='Models'
|
| 916 |
+
))
|
| 917 |
+
|
| 918 |
+
# Add regression line
|
| 919 |
+
corr, p_val = pearsonr(x_clean, y_clean)
|
| 920 |
+
z = np.polyfit(x_clean, y_clean, 1)
|
| 921 |
+
p = np.poly1d(z)
|
| 922 |
+
x_line = np.linspace(x_clean.min(), x_clean.max(), 100)
|
| 923 |
+
|
| 924 |
+
fig.add_trace(go.Scatter(
|
| 925 |
+
x=x_line,
|
| 926 |
+
y=p(x_line),
|
| 927 |
+
mode='lines',
|
| 928 |
+
name=f'r = {corr:.3f}, p = {p_val:.3f}',
|
| 929 |
+
line=dict(color='red', dash='dash')
|
| 930 |
+
))
|
| 931 |
+
|
| 932 |
+
fig.update_layout(
|
| 933 |
+
title=f"Uncertainty-Aware Correlation: {clean_benchmark_name(y_bench)} vs {clean_benchmark_name(x_bench)}",
|
| 934 |
+
xaxis_title=f"{clean_benchmark_name(x_bench)} (±95% CI)",
|
| 935 |
+
yaxis_title=f"{clean_benchmark_name(y_bench)} (±95% CI)",
|
| 936 |
+
showlegend=True
|
| 937 |
+
)
|
| 938 |
+
|
| 939 |
+
st.plotly_chart(fig, use_container_width=True)
|
| 940 |
+
|
| 941 |
+
st.info(f"Showing {len(x_clean)} models with both score and uncertainty data. Error bars represent 95% confidence intervals.")
|
| 942 |
+
else:
|
| 943 |
+
st.warning("Insufficient data with uncertainty estimates for the selected benchmark pair.")
|
| 944 |
+
|
| 945 |
+
if __name__ == "__main__":
|
| 946 |
+
main()
|
benchmark_standard_errors.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e01a3a6ba4b029de038b88c663b83609a744697ac12ed08cc217096c2f8fda18
|
| 3 |
+
size 630831
|
comprehensive_benchmark_scores.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5c2fa13f14167b5169d4d56d635629c158789b5c23a3673f1a94529a8ee0de0
|
| 3 |
+
size 415701
|
requirements.txt
CHANGED
|
@@ -1,3 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastapi
|
| 2 |
+
uvicorn
|
| 3 |
+
requests
|
| 4 |
+
sqlalchemy
|
| 5 |
+
asyncpg
|
| 6 |
+
aiohttp
|
| 7 |
+
python-json-logger
|
| 8 |
+
psycopg2-binary
|
| 9 |
+
antlr4-python3-runtime==4.11
|
| 10 |
+
streamlit>=1.28.0
|
| 11 |
+
pandas>=2.0.0
|
| 12 |
+
numpy>=1.24.0
|
| 13 |
+
plotly>=5.15.0
|
| 14 |
+
scipy>=1.10.0
|
| 15 |
+
matplotlib>=3.7.0
|
| 16 |
+
seaborn>=0.12.0
|