How aymenbenbrik/projetintegre works
1. Project purpose
This repository is a student project for client churn analysis and prediction. The architecture is organized as a full analytics pipeline: raw data preparation, dimensional data modeling, business reporting, machine learning, and a final web application.
2. Top-level structure
The repo is split into numbered phases:
- 00_documentation/ for project specs and guidance
- 01_etl/ for extraction, cleaning, and transformation
- 02_data_warehouse/ for the warehouse schema and loading
- 03_power_bi/ for KPI dashboards and BI deliverables
- 04_machine_learning/ for training and model artifacts
- 05_web_app/ for the application layer
- 06_rapport/ and 07_presentation/ for final academic deliverables
3. Documentation layer
00_documentation/ contains the official project framing: problem statement, data description, timeline, and student guide. These files define the expected workflow and act as the project’s architectural contract.
4. Data boundary
The data/ folder is the ingress boundary for raw datasets. The README explicitly says this folder is not versioned and must remain confidential. This means the repository is designed to separate source code from sensitive input data.
5. Source data and reference files
The data folder contains one main churn dataset (data_churn.csv) and several dimension/reference tables in Excel format, such as currency, sector, industry, target, transaction, and closure reason dimensions. There is also anonymize.py, which indicates a preprocessing step to mask or sanitize sensitive fields before downstream use.
6. ETL subsystem
01_etl/ is where the repository expects the first processing stage: data cleaning, normalization, feature preparation, and possibly anonymization orchestration. This subsystem converts raw inputs into standardized analytical data suitable for loading into the warehouse and for reuse in ML.
7. Data warehouse subsystem
02_data_warehouse/ holds the relational analytics model. The presence of separate dimension files in data/ suggests a dimensional design, likely a star or snowflake schema supporting churn analysis. This layer is the central structured store feeding reporting and potentially ML feature extraction.
8. Business intelligence layer
03_power_bi/ is the reporting/visualization layer. It is intended for .pbix files, KPI documentation, and exported visuals. Architecturally, this layer consumes curated warehouse data rather than raw files, making it the business-facing presentation of churn metrics.
9. Machine learning subsystem
04_machine_learning/ is the predictive analytics layer. It is expected to contain notebooks, training scripts, and saved models such as .pkl artifacts. Its input is likely the cleaned/feature-engineered dataset produced by ETL or the warehouse; its output is a persisted prediction model used later by the app.
10. Web application layer
05_web_app/ is the deployment-facing interface for the project. The README says a public URL must be delivered, which implies this app is meant to expose churn prediction or related insights to end users. It likely consumes the trained model artifact from the ML layer.
11. Reporting and presentation outputs
06_rapport/ and 07_presentation/ are documentation deliverables, not core runtime components. They summarize methods, results, and conclusions, and should reflect the same pipeline used in the code to ensure traceability.
12. Shared engineering constraints
The whole repo is designed around reproducibility and data privacy. The requirements.txt suggests a Python-based workflow, and the README emphasizes rerunnable code, regular Git commits, and no raw data in GitHub. That makes the main architectural boundary: code and documentation are versioned; sensitive data stays external.
13. End-to-end data flow
The intended flow is: raw churn data in data/ → anonymization/ETL → warehouse modeling/loading → BI dashboards and ML training → web app deployment → report and presentation. For an architecture diagram, this should be shown as a single pipeline with two downstream consumers from curated data: business intelligence and predictive application.
Main entry points: 02_data_warehouse Warehouse · 01_etl ETL · 04_machine_learning Machine learning · 03_power_bi Power BI
Components 15
Documentation
Project framing, workflow guidance, and academic specifications.
- Project README · Top-level architectural overview and delivery expectations.
README.md - Project brief · Problem statement and project framing.
00_documentation/1_description_projet.md - Data guide · Dataset description and data handling guidance.
00_documentation/2_description_donnees.md - Timeline · Work plan and milestone sequencing.
00_documentation/3_timeline.md - Student guide · Process rules and expected workflow.
00_documentation/4_guide_etudiant.md
Data boundary
External raw inputs and privacy-sensitive source files kept out of version control.
- Churn data · Main churn source file kept outside version control.
data/data_churn.csv - Reference dims · Excel reference tables used for analytical modeling.
data - Anonymizer · Sanitizes sensitive fields before downstream processing.
data/anonymize.py
Analytics pipeline
ETL, warehouse, reporting, machine learning, and application runtime.
- ETL · Cleaning, normalization, and feature preparation stage.
01_etl - Warehouse · Curated relational analytics layer for churn analysis.
02_data_warehouse - Power BI · Business dashboards and KPI deliverables.
03_power_bi - Machine learning · Training and persisted model artifacts for churn prediction.
04_machine_learning - Web app · End-user interface consuming prediction outputs.
05_web_app
Deliverables
Final written and presentation outputs.
- Report · Final written analysis and conclusions.
06_rapport - Presentation · Final oral presentation materials.
07_presentation
Connections 17
- Project README → Project brief: defines · Repository README frames the project and deliverables.
- Project README → Churn data: uses · README describes the confidential data boundary.
- Project brief → ETL: guides · Project framing informs the processing pipeline.
- Data guide → Churn data: describes · Data documentation explains the source dataset.
- Churn data → Anonymizer: sanitized by · Raw churn data is anonymized before reuse.
- Anonymizer → ETL: feeds · Privacy-prepared data enters ETL.
- Reference dims → Warehouse: models · Reference dimensions support the warehouse schema.
- ETL → Warehouse: loads · Curated data is loaded into the analytics warehouse.
- Warehouse → Power BI: serves · BI dashboards consume curated warehouse data.
- ETL → Machine learning: features · ML training uses cleaned and engineered data.
- Warehouse → Machine learning: supports · Warehouse data can also feed model features.
- Machine learning → Web app: powers · Persisted models are exposed through the web app.
- Warehouse → Web app: enriches · Application can use curated reference data or scores.
- Power BI → Report: informs · Dashboards provide figures and KPIs for the report.
- Machine learning → Report: documents · Model results are summarized in the final report.
- Web app → Presentation: presents · Application outcomes are presented in the final slides.
- Power BI → Presentation: summarizes · BI outputs are included in the presentation.