user-churn / tabs /fairness.py
VasithaTilakumara
Version 2.0 - added LFS tracking for lsapp.tsv and updated features
53b92fc
raw
history blame contribute delete
579 Bytes
import gradio as gr
from utils.models import show_fairness_table
def render():
gr.Markdown("### Fairness Check Across Groups")
with gr.Row():
with gr.Column():
gr.Markdown("#### Group Metrics")
gr.Dataframe(value=show_fairness_table())
with gr.Column():
gr.Markdown("#### Interpretation")
gr.Markdown("""
- **Demographic parity** difference close to 0 → predictions are balanced
- **Equalized odds** difference close to 0 → errors are equally distributed
""")