fix
Browse files- time_series_gradio.py +32 -82
time_series_gradio.py
CHANGED
|
@@ -140,9 +140,9 @@ def create_time_series_summary_gradio(historical_df: pd.DataFrame) -> dict:
|
|
| 140 |
plot_bgcolor='#1a1a1a',
|
| 141 |
)
|
| 142 |
return {
|
| 143 |
-
'failure_rates':
|
| 144 |
-
'amd_tests':
|
| 145 |
-
'nvidia_tests':
|
| 146 |
}
|
| 147 |
|
| 148 |
daily_stats = []
|
|
@@ -231,26 +231,16 @@ def create_time_series_summary_gradio(historical_df: pd.DataFrame) -> dict:
|
|
| 231 |
title="Overall Failure Rates Over Time",
|
| 232 |
labels={'failure_rate': 'Failure Rate (%)', 'date': 'Date', 'platform': 'Platform'}
|
| 233 |
)
|
| 234 |
-
fig_failure_rates.update_traces(mode='lines+markers',
|
| 235 |
fig_failure_rates.update_layout(
|
| 236 |
height=400,
|
| 237 |
font=dict(size=16, color='#CCCCCC'),
|
| 238 |
paper_bgcolor='#000000',
|
| 239 |
plot_bgcolor='#1a1a1a',
|
| 240 |
title_font_size=20,
|
| 241 |
-
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)'),
|
| 242 |
-
xaxis=dict(
|
| 243 |
-
|
| 244 |
-
tickfont_size=14,
|
| 245 |
-
gridcolor='#333333',
|
| 246 |
-
showgrid=True
|
| 247 |
-
),
|
| 248 |
-
yaxis=dict(
|
| 249 |
-
title_font_size=16,
|
| 250 |
-
tickfont_size=14,
|
| 251 |
-
gridcolor='#333333',
|
| 252 |
-
showgrid=True
|
| 253 |
-
),
|
| 254 |
hovermode='x unified'
|
| 255 |
)
|
| 256 |
|
|
@@ -264,26 +254,16 @@ def create_time_series_summary_gradio(historical_df: pd.DataFrame) -> dict:
|
|
| 264 |
title="AMD Test Results Over Time",
|
| 265 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 266 |
)
|
| 267 |
-
fig_amd.update_traces(mode='lines+markers',
|
| 268 |
fig_amd.update_layout(
|
| 269 |
height=400,
|
| 270 |
font=dict(size=16, color='#CCCCCC'),
|
| 271 |
paper_bgcolor='#000000',
|
| 272 |
plot_bgcolor='#1a1a1a',
|
| 273 |
title_font_size=20,
|
| 274 |
-
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)'),
|
| 275 |
-
xaxis=dict(
|
| 276 |
-
|
| 277 |
-
tickfont_size=14,
|
| 278 |
-
gridcolor='#333333',
|
| 279 |
-
showgrid=True
|
| 280 |
-
),
|
| 281 |
-
yaxis=dict(
|
| 282 |
-
title_font_size=16,
|
| 283 |
-
tickfont_size=14,
|
| 284 |
-
gridcolor='#333333',
|
| 285 |
-
showgrid=True
|
| 286 |
-
),
|
| 287 |
hovermode='x unified'
|
| 288 |
)
|
| 289 |
|
|
@@ -297,33 +277,23 @@ def create_time_series_summary_gradio(historical_df: pd.DataFrame) -> dict:
|
|
| 297 |
title="NVIDIA Test Results Over Time",
|
| 298 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 299 |
)
|
| 300 |
-
fig_nvidia.update_traces(mode='lines+markers',
|
| 301 |
fig_nvidia.update_layout(
|
| 302 |
height=400,
|
| 303 |
font=dict(size=16, color='#CCCCCC'),
|
| 304 |
paper_bgcolor='#000000',
|
| 305 |
plot_bgcolor='#1a1a1a',
|
| 306 |
title_font_size=20,
|
| 307 |
-
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)'),
|
| 308 |
-
xaxis=dict(
|
| 309 |
-
|
| 310 |
-
tickfont_size=14,
|
| 311 |
-
gridcolor='#333333',
|
| 312 |
-
showgrid=True
|
| 313 |
-
),
|
| 314 |
-
yaxis=dict(
|
| 315 |
-
title_font_size=16,
|
| 316 |
-
tickfont_size=14,
|
| 317 |
-
gridcolor='#333333',
|
| 318 |
-
showgrid=True
|
| 319 |
-
),
|
| 320 |
hovermode='x unified'
|
| 321 |
)
|
| 322 |
|
| 323 |
return {
|
| 324 |
-
'failure_rates':
|
| 325 |
-
'amd_tests':
|
| 326 |
-
'nvidia_tests':
|
| 327 |
}
|
| 328 |
|
| 329 |
|
|
@@ -347,8 +317,8 @@ def create_model_time_series_gradio(historical_df: pd.DataFrame, model_name: str
|
|
| 347 |
plot_bgcolor='#1a1a1a',
|
| 348 |
)
|
| 349 |
return {
|
| 350 |
-
'amd_plot':
|
| 351 |
-
'nvidia_plot':
|
| 352 |
}
|
| 353 |
|
| 354 |
model_data = historical_df[historical_df.index.str.lower() == model_name.lower()]
|
|
@@ -372,8 +342,8 @@ def create_model_time_series_gradio(historical_df: pd.DataFrame, model_name: str
|
|
| 372 |
plot_bgcolor='#1a1a1a',
|
| 373 |
)
|
| 374 |
return {
|
| 375 |
-
'amd_plot':
|
| 376 |
-
'nvidia_plot':
|
| 377 |
}
|
| 378 |
|
| 379 |
dates = sorted(model_data['date'].unique())
|
|
@@ -446,26 +416,16 @@ def create_model_time_series_gradio(historical_df: pd.DataFrame, model_name: str
|
|
| 446 |
title=f"{model_name.upper()} - AMD Results Over Time",
|
| 447 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 448 |
)
|
| 449 |
-
fig_amd.update_traces(mode='lines+markers',
|
| 450 |
fig_amd.update_layout(
|
| 451 |
height=400,
|
| 452 |
font=dict(size=16, color='#CCCCCC'),
|
| 453 |
paper_bgcolor='#000000',
|
| 454 |
plot_bgcolor='#1a1a1a',
|
| 455 |
title_font_size=20,
|
| 456 |
-
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)'),
|
| 457 |
-
xaxis=dict(
|
| 458 |
-
|
| 459 |
-
tickfont_size=14,
|
| 460 |
-
gridcolor='#333333',
|
| 461 |
-
showgrid=True
|
| 462 |
-
),
|
| 463 |
-
yaxis=dict(
|
| 464 |
-
title_font_size=16,
|
| 465 |
-
tickfont_size=14,
|
| 466 |
-
gridcolor='#333333',
|
| 467 |
-
showgrid=True
|
| 468 |
-
),
|
| 469 |
hovermode='x unified'
|
| 470 |
)
|
| 471 |
|
|
@@ -479,30 +439,20 @@ def create_model_time_series_gradio(historical_df: pd.DataFrame, model_name: str
|
|
| 479 |
title=f"{model_name.upper()} - NVIDIA Results Over Time",
|
| 480 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 481 |
)
|
| 482 |
-
fig_nvidia.update_traces(mode='lines+markers',
|
| 483 |
fig_nvidia.update_layout(
|
| 484 |
height=400,
|
| 485 |
font=dict(size=16, color='#CCCCCC'),
|
| 486 |
paper_bgcolor='#000000',
|
| 487 |
plot_bgcolor='#1a1a1a',
|
| 488 |
title_font_size=20,
|
| 489 |
-
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)'),
|
| 490 |
-
xaxis=dict(
|
| 491 |
-
|
| 492 |
-
tickfont_size=14,
|
| 493 |
-
gridcolor='#333333',
|
| 494 |
-
showgrid=True
|
| 495 |
-
),
|
| 496 |
-
yaxis=dict(
|
| 497 |
-
title_font_size=16,
|
| 498 |
-
tickfont_size=14,
|
| 499 |
-
gridcolor='#333333',
|
| 500 |
-
showgrid=True
|
| 501 |
-
),
|
| 502 |
hovermode='x unified'
|
| 503 |
)
|
| 504 |
|
| 505 |
return {
|
| 506 |
-
'amd_plot':
|
| 507 |
-
'nvidia_plot':
|
| 508 |
}
|
|
|
|
| 140 |
plot_bgcolor='#1a1a1a',
|
| 141 |
)
|
| 142 |
return {
|
| 143 |
+
'failure_rates': empty_fig,
|
| 144 |
+
'amd_tests': empty_fig,
|
| 145 |
+
'nvidia_tests': empty_fig
|
| 146 |
}
|
| 147 |
|
| 148 |
daily_stats = []
|
|
|
|
| 231 |
title="Overall Failure Rates Over Time",
|
| 232 |
labels={'failure_rate': 'Failure Rate (%)', 'date': 'Date', 'platform': 'Platform'}
|
| 233 |
)
|
| 234 |
+
fig_failure_rates.update_traces(mode='lines+markers', marker=dict(size=8))
|
| 235 |
fig_failure_rates.update_layout(
|
| 236 |
height=400,
|
| 237 |
font=dict(size=16, color='#CCCCCC'),
|
| 238 |
paper_bgcolor='#000000',
|
| 239 |
plot_bgcolor='#1a1a1a',
|
| 240 |
title_font_size=20,
|
| 241 |
+
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)', yanchor="top", y=0.99, xanchor="left", x=0.01),
|
| 242 |
+
xaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
| 243 |
+
yaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
hovermode='x unified'
|
| 245 |
)
|
| 246 |
|
|
|
|
| 254 |
title="AMD Test Results Over Time",
|
| 255 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 256 |
)
|
| 257 |
+
fig_amd.update_traces(mode='lines+markers', marker=dict(size=8))
|
| 258 |
fig_amd.update_layout(
|
| 259 |
height=400,
|
| 260 |
font=dict(size=16, color='#CCCCCC'),
|
| 261 |
paper_bgcolor='#000000',
|
| 262 |
plot_bgcolor='#1a1a1a',
|
| 263 |
title_font_size=20,
|
| 264 |
+
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)', yanchor="top", y=0.99, xanchor="left", x=0.01),
|
| 265 |
+
xaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
| 266 |
+
yaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
hovermode='x unified'
|
| 268 |
)
|
| 269 |
|
|
|
|
| 277 |
title="NVIDIA Test Results Over Time",
|
| 278 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 279 |
)
|
| 280 |
+
fig_nvidia.update_traces(mode='lines+markers', marker=dict(size=8))
|
| 281 |
fig_nvidia.update_layout(
|
| 282 |
height=400,
|
| 283 |
font=dict(size=16, color='#CCCCCC'),
|
| 284 |
paper_bgcolor='#000000',
|
| 285 |
plot_bgcolor='#1a1a1a',
|
| 286 |
title_font_size=20,
|
| 287 |
+
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)', yanchor="top", y=0.99, xanchor="left", x=0.01),
|
| 288 |
+
xaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
| 289 |
+
yaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 290 |
hovermode='x unified'
|
| 291 |
)
|
| 292 |
|
| 293 |
return {
|
| 294 |
+
'failure_rates': fig_failure_rates,
|
| 295 |
+
'amd_tests': fig_amd,
|
| 296 |
+
'nvidia_tests': fig_nvidia
|
| 297 |
}
|
| 298 |
|
| 299 |
|
|
|
|
| 317 |
plot_bgcolor='#1a1a1a',
|
| 318 |
)
|
| 319 |
return {
|
| 320 |
+
'amd_plot': empty_fig_amd,
|
| 321 |
+
'nvidia_plot': empty_fig_nvidia
|
| 322 |
}
|
| 323 |
|
| 324 |
model_data = historical_df[historical_df.index.str.lower() == model_name.lower()]
|
|
|
|
| 342 |
plot_bgcolor='#1a1a1a',
|
| 343 |
)
|
| 344 |
return {
|
| 345 |
+
'amd_plot': empty_fig_amd,
|
| 346 |
+
'nvidia_plot': empty_fig_nvidia
|
| 347 |
}
|
| 348 |
|
| 349 |
dates = sorted(model_data['date'].unique())
|
|
|
|
| 416 |
title=f"{model_name.upper()} - AMD Results Over Time",
|
| 417 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 418 |
)
|
| 419 |
+
fig_amd.update_traces(mode='lines+markers', marker=dict(size=8))
|
| 420 |
fig_amd.update_layout(
|
| 421 |
height=400,
|
| 422 |
font=dict(size=16, color='#CCCCCC'),
|
| 423 |
paper_bgcolor='#000000',
|
| 424 |
plot_bgcolor='#1a1a1a',
|
| 425 |
title_font_size=20,
|
| 426 |
+
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)', yanchor="top", y=0.99, xanchor="left", x=0.01),
|
| 427 |
+
xaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
| 428 |
+
yaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
hovermode='x unified'
|
| 430 |
)
|
| 431 |
|
|
|
|
| 439 |
title=f"{model_name.upper()} - NVIDIA Results Over Time",
|
| 440 |
labels={'count': 'Number of Tests', 'date': 'Date', 'test_type': 'Test Type'}
|
| 441 |
)
|
| 442 |
+
fig_nvidia.update_traces(mode='lines+markers', marker=dict(size=8))
|
| 443 |
fig_nvidia.update_layout(
|
| 444 |
height=400,
|
| 445 |
font=dict(size=16, color='#CCCCCC'),
|
| 446 |
paper_bgcolor='#000000',
|
| 447 |
plot_bgcolor='#1a1a1a',
|
| 448 |
title_font_size=20,
|
| 449 |
+
legend=dict(font=dict(size=16), bgcolor='rgba(0,0,0,0.5)', yanchor="top", y=0.99, xanchor="left", x=0.01),
|
| 450 |
+
xaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
| 451 |
+
yaxis=dict(title_font_size=16, tickfont_size=14, gridcolor='#333333', showgrid=True),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 452 |
hovermode='x unified'
|
| 453 |
)
|
| 454 |
|
| 455 |
return {
|
| 456 |
+
'amd_plot': fig_amd,
|
| 457 |
+
'nvidia_plot': fig_nvidia
|
| 458 |
}
|