# sahiti-web/student-performance-xai-governance-framework architecture

> Architecture diagram of the GitHub repository sahiti-web/student-performance-xai-governance-framework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sahiti-web/student-performance-xai-governance-framework
- Repository: https://github.com/sahiti-web/student-performance-xai-governance-framework

## Overview

This is an institutional student-dropout prediction and governance framework, organized as data preparation, model benchmarking, explainability, and fairness review, with a unified dashboard for staff. The principal workflow turns student records into a held-out champion model, explains cohort and individual predictions, audits equity, and presents results and governance standards. README statements document the phase sequence and portal capabilities; sampled code confirms key phase responsibilities. Some implementation details and links for unsampled modules are not shown, so those relationships are omitted rather than inferred.

Main entry points: [`phase3_bundle.pkl`](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_bundle.pkl) (Champion Bundle), [`phase4_fairness_audit_pipeline.py`](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py) (Equity Audits), [`phase2_model_training.py`](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase2_model_training.py) (Benchmark Models), [`phase3_explainability_pipeline.py`](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py) (Global SHAP)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data Preparation"]
  node_records["Student Records"]
  node_prep["Prepare Features"]
  node_translated["English Dataset"]
end

subgraph group_model["Modeling"]
  node_training["Benchmark Models"]
  node_champion["Champion Bundle<br/>[phase3_bundle.pkl]"]
  node_benchmark_results["Benchmark Results"]
  node_verify["Prediction Verification<br/>[verify_model.py]"]
end

subgraph group_xai["Explainability"]
  node_macro_xai["Global SHAP"]
  node_local_xai["Local SHAP and LIME"]
  node_counterfactuals["Counterfactual Scenarios"]
  node_english_xai["English SHAP Outputs"]
  node_phase3_dashboard["XAI Dashboard"]
end

subgraph group_governance["Equity Governance"]
  node_fairness["Equity Audits"]
  node_intersectional["Intersectional Audit"]
  node_early_warning["Early Warning Audit"]
  node_modality["Modality Audit"]
  node_charter["Governance Charter"]
  node_phase4_dashboard["Fairness Dashboard"]
end

subgraph group_portal["Institutional Portal"]
  node_portal_builder["Portal Assembly"]
  node_portal["Governance Portal"]
end

node_staff(("Institutional Staff"))

node_records -->|"provides data"| node_prep
node_prep -->|"prepares cohort"| node_training
node_training -->|"selects model"| node_champion
node_training -.->|"records results"| node_benchmark_results
node_champion -->|"explains model"| node_macro_xai
node_champion -->|"explains predictions"| node_local_xai
node_local_xai -->|"simulates changes"| node_counterfactuals
node_macro_xai -->|"presents results"| node_phase3_dashboard
node_local_xai -->|"presents cases"| node_phase3_dashboard
node_champion -->|"audits predictions"| node_fairness
node_fairness -->|"includes matrix"| node_intersectional
node_fairness -->|"includes validation"| node_early_warning
node_fairness -->|"includes disaggregation"| node_modality
node_fairness -->|"presents audits"| node_phase4_dashboard
node_charter -->|"sets standards"| node_portal
node_staff -->|"reviews results"| node_portal
node_portal_builder -.->|"generates portal"| node_portal
node_macro_xai -.->|"regenerates labels"| node_english_xai
node_translated -.->|"translates features"| node_english_xai
node_champion -->|"loads bundle"| node_verify

click node_records "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/dataset_evasao_MDE.xlsx"
click node_prep "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase1_data_preparation.py"
click node_translated "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/translate_dataset.py"
click node_training "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase2_model_training.py"
click node_champion "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_bundle.pkl"
click node_benchmark_results "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/experiment_results.csv"
click node_verify "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/verify_model.py"
click node_macro_xai "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py"
click node_local_xai "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py"
click node_counterfactuals "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py"
click node_english_xai "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/regenerate_english_xai.py"
click node_phase3_dashboard "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_outputs/phase3_xai_dashboard.html"
click node_fairness "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py"
click node_intersectional "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py"
click node_early_warning "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py"
click node_modality "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py"
click node_charter "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/PHASE4_FAIRNESS_GOVERNANCE_GUIDE.md"
click node_phase4_dashboard "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_outputs/phase4_dashboard.html"
click node_portal_builder "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/build_unified_portal.py"
click node_portal "https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/unified_governance_portal.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_records,node_prep,node_translated toneBlue
class node_training,node_champion,node_benchmark_results,node_verify toneAmber
class node_macro_xai,node_local_xai,node_counterfactuals,node_english_xai,node_phase3_dashboard toneMint
class node_fairness,node_intersectional,node_early_warning,node_modality,node_charter,node_phase4_dashboard toneRose
class node_portal_builder,node_portal,node_staff toneIndigo
```

## Components

### Data Preparation

- [Student Records](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/dataset_evasao_MDE.xlsx): `dataset_evasao_MDE.xlsx`
- [Prepare Features](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase1_data_preparation.py): `phase1_data_preparation.py`
- [English Dataset](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/translate_dataset.py): `translate_dataset.py`

### Modeling

- [Benchmark Models](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase2_model_training.py): `phase2_model_training.py`
- [Champion Bundle](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_bundle.pkl): `phase3_bundle.pkl`
- [Benchmark Results](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/experiment_results.csv): `experiment_results.csv`
- [Prediction Verification](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/verify_model.py): `verify_model.py`

### Explainability

- [Global SHAP](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py): `phase3_explainability_pipeline.py`
- [Local SHAP and LIME](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py): `phase3_explainability_pipeline.py`
- [Counterfactual Scenarios](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py): `phase3_explainability_pipeline.py`
- [English SHAP Outputs](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/regenerate_english_xai.py): `regenerate_english_xai.py`
- [XAI Dashboard](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase3_outputs/phase3_xai_dashboard.html): `phase3_outputs/phase3_xai_dashboard.html`

### Equity Governance

- [Equity Audits](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py): `phase4_fairness_audit_pipeline.py`
- [Intersectional Audit](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py): `phase4_fairness_audit_pipeline.py`
- [Early Warning Audit](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py): `phase4_fairness_audit_pipeline.py`
- [Modality Audit](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py): `phase4_fairness_audit_pipeline.py`
- [Governance Charter](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/PHASE4_FAIRNESS_GOVERNANCE_GUIDE.md): `PHASE4_FAIRNESS_GOVERNANCE_GUIDE.md`
- [Fairness Dashboard](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/phase4_outputs/phase4_dashboard.html): `phase4_outputs/phase4_dashboard.html`

### Institutional Portal

- [Portal Assembly](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/build_unified_portal.py): `build_unified_portal.py`
- [Governance Portal](https://github.com/sahiti-web/student-performance-xai-governance-framework/blob/main/unified_governance_portal.html): `unified_governance_portal.html`

### Other components

- **Institutional Staff**

## Connections

- Student Records → Prepare Features: provides data (evidence: `README.md`)
- Prepare Features → Benchmark Models: prepares cohort (evidence: `README.md`)
- Benchmark Models → Champion Bundle: selects model (evidence: `README.md`)
- Benchmark Models → Benchmark Results: records results
- Champion Bundle → Global SHAP: explains model (evidence: `README.md`)
- Champion Bundle → Local SHAP and LIME: explains predictions (evidence: `README.md`)
- Local SHAP and LIME → Counterfactual Scenarios: simulates changes (evidence: `README.md`)
- Global SHAP → XAI Dashboard: presents results (evidence: `README.md`)
- Local SHAP and LIME → XAI Dashboard: presents cases (evidence: `README.md`)
- Champion Bundle → Equity Audits: audits predictions (evidence: `README.md`)
- Equity Audits → Intersectional Audit: includes matrix (evidence: `README.md`)
- Equity Audits → Early Warning Audit: includes validation (evidence: `README.md`)
- Equity Audits → Modality Audit: includes disaggregation (evidence: `README.md`)
- Equity Audits → Fairness Dashboard: presents audits (evidence: `README.md`)
- Governance Charter → Governance Portal: sets standards (evidence: `README.md`)
- Institutional Staff → Governance Portal: reviews results (evidence: `README.md`)
- Portal Assembly → Governance Portal: generates portal
- Global SHAP → English SHAP Outputs: regenerates labels
- English Dataset → English SHAP Outputs: translates features
- Champion Bundle → Prediction Verification: loads bundle (evidence: `verify_model.py`)
