# rayane-kahlaoui/projetml architecture

> Architecture diagram of the GitHub repository rayane-kahlaoui/projetml, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rayane-kahlaoui/projetml
- Repository: https://github.com/rayane-kahlaoui/projetml

## Overview

This is a bank-marketing subscription forecasting MLOps platform. Users explore and clean data, launch and compare training runs, promote a model, then request explainable customer predictions; the MLOps panel also exposes registry and drift operations. The React app routes among these product views and calls a FastAPI API, which delegates to data, training, and analysis services. MLflow provides experiment tracking and model lifecycle storage. The graph follows shown imports, API calls, and documented capabilities; unsampled page-to-API links rely on the SOURCE INDEX, and undocumented runtime details are omitted.

Main entry points: [`Front/src/App.jsx`](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/App.jsx) (Page navigation), [`Back/app/api/endpoints.py`](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/api/endpoints.py) (API routes), [`Front/src/utils/api.js`](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/utils/api.js) (API client), [`Back/app/services/ml_service.py`](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/ml_service.py) (Training service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_app["Page navigation<br/>[App.jsx]"]
  node_dataset_view["Dataset explorer"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_training_view["Model training<br/>[ModelTraining.jsx]"]
  node_comparison["Run comparison"]
  node_history["Experiment history"]
  node_prediction_view["Customer prediction"]
  node_rf_view["Forest analysis"]
  node_mlops_view["MLOps panel<br/>[MLOpsPanel.jsx]"]
end

subgraph group_api["API layer"]
  node_client["API client<br/>[api.js]"]
  node_server["FastAPI app<br/>[main.py]"]
  node_routes["API routes<br/>[endpoints.py]"]
  node_schemas["Request schemas<br/>[models.py]"]
end

subgraph group_data["Data and analysis"]
  node_data_service["Dataset service<br/>[data_service.py]"]
  node_rf_service["Forest analysis<br/>[rf_analysis.py]"]
end

subgraph group_mlops["Model operations"]
  node_ml_service["Training service<br/>[ml_service.py]"]
  node_drift["Drift simulation<br/>[simulate_drift.py]"]
  node_mlflow[("MLflow tracking and registry")]
end

node_operator(("Platform user"))

node_operator -->|"uses"| node_app
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_dataset_view
node_app -->|"renders"| node_training_view
node_app -->|"renders"| node_comparison
node_app -->|"renders"| node_history
node_app -->|"renders"| node_prediction_view
node_app -->|"renders"| node_rf_view
node_app -->|"renders"| node_mlops_view
node_dataset_view -->|"calls API"| node_client
node_dashboard -->|"calls API"| node_client
node_training_view -->|"calls API"| node_client
node_comparison -->|"calls API"| node_client
node_history -->|"calls API"| node_client
node_prediction_view -->|"calls API"| node_client
node_mlops_view -->|"calls API"| node_client
node_client -->|"HTTP requests"| node_server
node_server -->|"mounts routes"| node_routes
node_routes -->|"delegates data"| node_data_service
node_routes -->|"delegates training"| node_ml_service
node_routes -->|"requests analysis"| node_rf_service
node_routes -->|"validates requests"| node_schemas
node_ml_service -->|"reads dataset"| node_data_service
node_rf_service -->|"uses dataset"| node_data_service
node_ml_service -->|"logs runs"| node_mlflow
node_routes -->|"queries registry"| node_mlflow
node_routes -->|"loads simulation"| node_drift
node_routes -->|"starts retraining"| node_ml_service

click node_app "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/App.jsx"
click node_dataset_view "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/DatasetExplorer.jsx"
click node_dashboard "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/Dashboard.jsx"
click node_training_view "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/ModelTraining.jsx"
click node_comparison "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/ModelComparison.jsx"
click node_history "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/ExperimentHistory.jsx"
click node_prediction_view "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/PredictCustomer.jsx"
click node_rf_view "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/RandomForestAnalysis.jsx"
click node_mlops_view "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/MLOpsPanel.jsx"
click node_client "https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/utils/api.js"
click node_server "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/main.py"
click node_routes "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/api/endpoints.py"
click node_schemas "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/schemas/models.py"
click node_data_service "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/data_service.py"
click node_rf_service "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/rf_analysis.py"
click node_ml_service "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/ml_service.py"
click node_drift "https://github.com/rayane-kahlaoui/projetml/blob/main/Back/scripts/simulate_drift.py"

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_app,node_dataset_view,node_dashboard,node_training_view,node_comparison,node_history,node_prediction_view,node_rf_view,node_mlops_view,node_operator toneBlue
class node_client,node_server,node_routes,node_schemas toneAmber
class node_data_service,node_rf_service toneMint
class node_ml_service,node_drift,node_mlflow toneRose
```

## Components

### User interface

- [Page navigation](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/App.jsx): `Front/src/App.jsx`
- [Dataset explorer](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/DatasetExplorer.jsx): `Front/src/pages/DatasetExplorer.jsx`
- [Dashboard](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/Dashboard.jsx): `Front/src/pages/Dashboard.jsx`
- [Model training](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/ModelTraining.jsx): `Front/src/pages/ModelTraining.jsx`
- [Run comparison](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/ModelComparison.jsx): `Front/src/pages/ModelComparison.jsx`
- [Experiment history](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/ExperimentHistory.jsx): `Front/src/pages/ExperimentHistory.jsx`
- [Customer prediction](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/PredictCustomer.jsx): `Front/src/pages/PredictCustomer.jsx`
- [Forest analysis](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/RandomForestAnalysis.jsx): `Front/src/pages/RandomForestAnalysis.jsx`
- [MLOps panel](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/pages/MLOpsPanel.jsx): `Front/src/pages/MLOpsPanel.jsx`

### API layer

- [API client](https://github.com/rayane-kahlaoui/projetml/blob/main/Front/src/utils/api.js): `Front/src/utils/api.js`
- [FastAPI app](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/main.py): `Back/app/main.py`
- [API routes](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/api/endpoints.py): `Back/app/api/endpoints.py`
- [Request schemas](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/schemas/models.py): `Back/app/schemas/models.py`

### Data and analysis

- [Dataset service](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/data_service.py): `Back/app/services/data_service.py`
- [Forest analysis](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/rf_analysis.py): `Back/app/services/rf_analysis.py`

### Model operations

- [Training service](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/app/services/ml_service.py): `Back/app/services/ml_service.py`
- [Drift simulation](https://github.com/rayane-kahlaoui/projetml/blob/main/Back/scripts/simulate_drift.py): `Back/scripts/simulate_drift.py`
- **MLflow tracking and registry**

### Other components

- **Platform user**

## Connections

- Platform user → Page navigation: uses (evidence: `Front/src/App.jsx`)
- Page navigation → Dashboard: renders (evidence: `Front/src/App.jsx`)
- Page navigation → Dataset explorer: renders (evidence: `Front/src/App.jsx`)
- Page navigation → Model training: renders (evidence: `Front/src/App.jsx`)
- Page navigation → Run comparison: renders (evidence: `Front/src/App.jsx`)
- Page navigation → Experiment history: renders (evidence: `Front/src/App.jsx`)
- Page navigation → Customer prediction: renders (evidence: `Front/src/App.jsx`)
- Page navigation → Forest analysis: renders (evidence: `Front/src/App.jsx`)
- Page navigation → MLOps panel: renders (evidence: `Front/src/App.jsx`)
- Dataset explorer → API client: calls API (evidence: `Front/src/pages/DatasetExplorer.jsx`)
- Dashboard → API client: calls API (evidence: `Front/src/pages/Dashboard.jsx`)
- Model training → API client: calls API (evidence: `Front/src/pages/ModelTraining.jsx`)
- Run comparison → API client: calls API (evidence: `Front/src/pages/ModelComparison.jsx`)
- Experiment history → API client: calls API (evidence: `Front/src/pages/ExperimentHistory.jsx`)
- Customer prediction → API client: calls API (evidence: `Front/src/pages/PredictCustomer.jsx`)
- MLOps panel → API client: calls API (evidence: `Front/src/pages/MLOpsPanel.jsx`)
- API client → FastAPI app: HTTP requests (evidence: `Front/src/utils/api.js`)
- FastAPI app → API routes: mounts routes (evidence: `Back/app/main.py`)
- API routes → Dataset service: delegates data (evidence: `Back/app/api/endpoints.py`)
- API routes → Training service: delegates training (evidence: `Back/app/api/endpoints.py`)
- API routes → Forest analysis: requests analysis (evidence: `Back/app/api/endpoints.py`)
- API routes → Request schemas: validates requests (evidence: `Back/app/api/endpoints.py`)
- Training service → Dataset service: reads dataset (evidence: `Back/app/services/ml_service.py`)
- Forest analysis → Dataset service: uses dataset (evidence: `Back/app/services/rf_analysis.py`)
- Training service → MLflow tracking and registry: logs runs (evidence: `Back/app/services/ml_service.py`)
- API routes → MLflow tracking and registry: queries registry (evidence: `Back/app/api/endpoints.py`)
- API routes → Drift simulation: loads simulation (evidence: `Back/app/api/endpoints.py`)
- API routes → Training service: starts retraining (evidence: `Back/app/api/endpoints.py`)
