# tejasvikolhe193/student-performance-xai-governance-framework architecture

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

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

## Overview

This is an institutional student-dropout prediction and governance framework, not just a model: it prepares Brazilian technical-education records, benchmarks classifiers, explains risk, audits equity, and presents results for institutional review. The principal workflow runs from cohort data through preprocessing and model selection to student-level explanations and fairness assessment, with a governance portal exposing benchmark, explanation, audit, and policy views. The sampled app code confirms its reads from generated audit and XAI artifacts; connections among unsampled phase implementations are based on the README’s documented phase sequence, not inspected calls.

Main entry points: [`phase3_bundle.pkl`](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase3_bundle.pkl) (Champion Model Bundle), [`app.py`](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/app.py) (Governance Dashboard), [`phase2_model_training.py`](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase2_model_training.py) (Model Benchmark), [`dataset_evasao_MDE.xlsx`](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/dataset_evasao_MDE.xlsx) (Student Records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data Preparation"]
  node_prepare["Cohort Preparation"]
  node_translate["Dataset Translation"]
  node_prepared_data["Prepared Cohort"]
end

subgraph group_model["Modeling"]
  node_benchmark["Model Benchmark"]
  node_benchmark_results["Experiment Results"]
  node_champion_bundle["Champion Model Bundle<br/>[phase3_bundle.pkl]"]
end

subgraph group_xai["Explainability"]
  node_explain["XAI Pipeline"]
  node_english_xai["English SHAP Reports"]
  node_xai_outputs["XAI Artifacts"]
end

subgraph group_governance["Governance"]
  node_fairness["Equity Audits"]
  node_audit_outputs["Audit Artifacts"]
  node_streamlit_app["Governance Dashboard<br/>[app.py]"]
  node_governance_portal["Unified Governance Portal"]
end

node_institution(("Institution"))
node_student_records["Student Records"]

node_institution -->|"provides cohort"| node_student_records
node_student_records -->|"loads and filters"| node_prepare
node_prepare -->|"writes features"| node_prepared_data
node_student_records -->|"translates dataset"| node_translate
node_prepared_data -->|"trains models"| node_benchmark
node_benchmark -->|"writes rankings"| node_benchmark_results
node_benchmark -->|"selects champion"| node_champion_bundle
node_champion_bundle -->|"explains predictions"| node_explain
node_explain -->|"generates attributions"| node_xai_outputs
node_champion_bundle -->|"computes SHAP"| node_english_xai
node_english_xai -->|"writes English reports"| node_xai_outputs
node_champion_bundle -->|"audits predictions"| node_fairness
node_fairness -->|"writes audit results"| node_audit_outputs
node_audit_outputs -->|"loads audit data"| node_streamlit_app
node_xai_outputs -->|"loads XAI data"| node_streamlit_app
node_benchmark_results -->|"loads benchmark"| node_streamlit_app
node_institution -->|"reviews results"| node_streamlit_app
node_institution -->|"reviews governance"| node_governance_portal

click node_student_records "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/dataset_evasao_MDE.xlsx"
click node_prepare "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase1_data_preparation.py"
click node_translate "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/translate_dataset.py"
click node_prepared_data "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/tree/main/phase1_outputs"
click node_benchmark "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase2_model_training.py"
click node_benchmark_results "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/experiment_results.csv"
click node_champion_bundle "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase3_bundle.pkl"
click node_explain "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py"
click node_english_xai "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/regenerate_english_xai.py"
click node_xai_outputs "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/tree/main/phase3_outputs"
click node_fairness "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py"
click node_audit_outputs "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/tree/main/phase4_outputs"
click node_streamlit_app "https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/app.py"
click node_governance_portal "https://github.com/tejasvikolhe193/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_prepare,node_translate,node_prepared_data toneBlue
class node_benchmark,node_benchmark_results,node_champion_bundle toneAmber
class node_explain,node_english_xai,node_xai_outputs toneMint
class node_fairness,node_audit_outputs,node_streamlit_app,node_governance_portal toneRose
class node_institution toneIndigo
class node_student_records toneTeal
```

## Components

### Data Preparation

- [Cohort Preparation](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase1_data_preparation.py): `phase1_data_preparation.py`
- [Dataset Translation](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/translate_dataset.py): `translate_dataset.py`
- [Prepared Cohort](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/tree/main/phase1_outputs): `phase1_outputs`

### Modeling

- [Model Benchmark](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase2_model_training.py): `phase2_model_training.py`
- [Experiment Results](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/experiment_results.csv): `experiment_results.csv`
- [Champion Model Bundle](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase3_bundle.pkl): `phase3_bundle.pkl`

### Explainability

- [XAI Pipeline](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase3_explainability_pipeline.py): `phase3_explainability_pipeline.py`
- [English SHAP Reports](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/regenerate_english_xai.py): `regenerate_english_xai.py`
- [XAI Artifacts](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/tree/main/phase3_outputs): `phase3_outputs`

### Governance

- [Equity Audits](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/phase4_fairness_audit_pipeline.py): `phase4_fairness_audit_pipeline.py`
- [Audit Artifacts](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/tree/main/phase4_outputs): `phase4_outputs`
- [Governance Dashboard](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/app.py): `app.py`
- [Unified Governance Portal](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/unified_governance_portal.html): `unified_governance_portal.html`

### Other components

- **Institution**
- [Student Records](https://github.com/tejasvikolhe193/student-performance-xai-governance-framework/blob/main/dataset_evasao_MDE.xlsx): `dataset_evasao_MDE.xlsx`

## Connections

- Institution → Student Records: provides cohort (evidence: `README.md`)
- Student Records → Cohort Preparation: loads and filters (evidence: `README.md`)
- Cohort Preparation → Prepared Cohort: writes features (evidence: `README.md`)
- Student Records → Dataset Translation: translates dataset (evidence: `translate_dataset.py`)
- Prepared Cohort → Model Benchmark: trains models (evidence: `README.md`)
- Model Benchmark → Experiment Results: writes rankings (evidence: `README.md`)
- Model Benchmark → Champion Model Bundle: selects champion (evidence: `README.md`)
- Champion Model Bundle → XAI Pipeline: explains predictions (evidence: `README.md`)
- XAI Pipeline → XAI Artifacts: generates attributions (evidence: `README.md`)
- Champion Model Bundle → English SHAP Reports: computes SHAP (evidence: `regenerate_english_xai.py`)
- English SHAP Reports → XAI Artifacts: writes English reports (evidence: `regenerate_english_xai.py`)
- Champion Model Bundle → Equity Audits: audits predictions (evidence: `README.md`)
- Equity Audits → Audit Artifacts: writes audit results (evidence: `phase4_fairness_audit_pipeline.py`)
- Audit Artifacts → Governance Dashboard: loads audit data (evidence: `app.py`)
- XAI Artifacts → Governance Dashboard: loads XAI data (evidence: `app.py`)
- Experiment Results → Governance Dashboard: loads benchmark (evidence: `app.py`)
- Institution → Governance Dashboard: reviews results (evidence: `README.md`)
- Institution → Unified Governance Portal: reviews governance (evidence: `README.md`)
