How an15cg0618sh/employee_attrition_plus works
Employee Attrition Plus is an educational workforce-analytics dashboard for exploring attrition patterns, training and comparing models, predicting, explaining model outputs, and monitoring drift. Users work through a React interface backed by FastAPI: upload or use workforce data, validate and explore it, train and evaluate models, then inspect predictions, explanations, analytics, and monitoring status. Backend stages and dashboard views are represented separately. The README documents the major capabilities; several backend connections are documented at workflow level because the available API excerpt is partial.
Main entry points: api.py FastAPI service · App.tsx Dashboard shell · pages Dashboard views · data_ingestion.py CSV ingestion
Components 20
Dashboard experience
- Dashboard shell
frontend/src/App.tsx - Dashboard views
frontend/src/pages - API client
frontend/src/api/client.ts - UI components
frontend/src/components/ui.tsx
Data and analytics
- CSV ingestion
src/data_ingestion.py - Schema validation
src/schema_validation.py - Dataset exploration
src/exploratory_analysis.py - Workforce analytics
src/workforce_analytics.py
Model lifecycle
- Feature preprocessing
src/data_preprocessing.py - Model training
src/model_training.py - Model evaluation
src/model_evaluation.py - Hyperparameter tuning
src/optimization.py - Model comparison
src/model_comparison.py - Model explainability
src/explainability.py
Trust and monitoring
- Drift monitoring
src/model_monitoring.py - Model artifacts
src/artifact_manager.py - Reports and documentation
src/reporting.py
API and artifacts
- FastAPI service
api.py - Runtime configuration
src/config.py
Other components
- Workforce analyst
Connections 25
- Workforce analyst → Dashboard shell: uses
README.md - Dashboard shell → API client: requests data
frontend/src/App.tsx - Dashboard shell → Dashboard views: renders views
frontend/src/App.tsx - Dashboard views → API client: requests data
frontend/src/pages/OverviewPage.tsx - Dashboard views → UI components: renders controls
frontend/src/pages/OverviewPage.tsx - API client → FastAPI service: HTTP requests
frontend/src/api/client.ts - FastAPI service → CSV ingestion: loads datasets
api.py - CSV ingestion → Schema validation: validates dataset
README.md - Schema validation → Dataset exploration: enables exploration
README.md - Schema validation → Workforce analytics: enables analytics
README.md - FastAPI service → Dataset exploration: serves explorer
api.py - FastAPI service → Workforce analytics: serves analytics
api.py - FastAPI service → Feature preprocessing: prepares training
README.md - FastAPI service → Model training: starts training
README.md - Model training → Model evaluation: evaluates model
src/model_training.py - FastAPI service → Hyperparameter tuning: starts tuning
api.py - FastAPI service → Model comparison: serves comparison
api.py - FastAPI service → Model explainability: serves explanations
api.py - FastAPI service → Drift monitoring: runs monitoring
README.md - Drift monitoring → Model artifacts: stores history
- FastAPI service → Model artifacts: loads protected models
api.py - Model training → Model artifacts: saves protected models
src/artifact_manager.py - FastAPI service → Reports and documentation: serves reports
api.py - CSV ingestion → Runtime configuration: uses data path
src/data_ingestion.py - Drift monitoring → Runtime configuration: uses thresholds
src/model_monitoring.py