# skysushant7366/bcgxdata-science architecture

> Architecture diagram of the GitHub repository skysushant7366/bcgxdata-science, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skysushant7366/bcgxdata-science
- Repository: https://github.com/skysushant7366/bcgxdata-science

## Overview

This repository is a notebook-based churn analysis for PowerCo’s SME customers, not a deployed prediction service. Its documented workflow combines customer and pricing data for exploratory analysis, prepares cleaned data for price-variance feature engineering, and evaluates a Random Forest model. The principal outcome is a business recommendation to rank customers using predicted churn probabilities because the model’s recall is low. Relationships shown here are documented in the README; no notebook source excerpts were provided, so implementation details beyond those statements are omitted.

Main entry points: [`Task_3_EDA.ipynb`](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_3_EDA.ipynb) (Exploratory analysis), [`clean_data_after_eda.csv`](https://github.com/skysushant7366/bcgxdata-science/blob/main/clean_data_after_eda.csv) (Cleaned dataset), [`Task_4_FEATURE_ENGINEERING.ipynb`](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_4_FEATURE_ENGINEERING.ipynb) (Feature engineering), [`Task_5_PREDICTIVE_MODELLING.ipynb`](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_5_PREDICTIVE_MODELLING.ipynb) (Churn modeling & evaluation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data"]
  node_client_data["Client records<br/>[client_data.csv]"]
  node_price_data["Price records<br/>[price_data.csv]"]
  node_clean_data["Cleaned dataset"]
end

subgraph group_analysis["Analysis"]
  node_eda["Exploratory analysis<br/>[Task_3_EDA.ipynb]"]
  node_features["Feature engineering"]
end

subgraph group_decision["Model &amp; strategy"]
  node_model["Churn modeling &amp; evaluation"]
  node_risk_ranking["Risk-ranking recommendation"]
end

node_retention(("Retention decision makers"))

node_client_data -->|"provides records"| node_eda
node_price_data -->|"provides records"| node_eda
node_eda -->|"prepares data"| node_clean_data
node_clean_data -->|"provides data"| node_features
node_features -->|"provides features"| node_model
node_model -->|"supports ranking"| node_risk_ranking
node_risk_ranking -->|"guides retention"| node_retention

click node_client_data "https://github.com/skysushant7366/bcgxdata-science/blob/main/Raw-data/client_data.csv"
click node_price_data "https://github.com/skysushant7366/bcgxdata-science/blob/main/Raw-data/price_data.csv"
click node_eda "https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_3_EDA.ipynb"
click node_clean_data "https://github.com/skysushant7366/bcgxdata-science/blob/main/clean_data_after_eda.csv"
click node_features "https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_4_FEATURE_ENGINEERING.ipynb"
click node_model "https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_5_PREDICTIVE_MODELLING.ipynb"
click node_risk_ranking "https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_5_PREDICTIVE_MODELLING.ipynb"

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_client_data,node_price_data,node_clean_data toneBlue
class node_eda,node_features toneAmber
class node_model,node_risk_ranking toneMint
class node_retention toneIndigo
```

## Components

### Data

- [Client records](https://github.com/skysushant7366/bcgxdata-science/blob/main/Raw-data/client_data.csv): `Raw-data/client_data.csv`
- [Price records](https://github.com/skysushant7366/bcgxdata-science/blob/main/Raw-data/price_data.csv): `Raw-data/price_data.csv`
- [Cleaned dataset](https://github.com/skysushant7366/bcgxdata-science/blob/main/clean_data_after_eda.csv): `clean_data_after_eda.csv`

### Analysis

- [Exploratory analysis](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_3_EDA.ipynb): `Task_3_EDA.ipynb`
- [Feature engineering](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_4_FEATURE_ENGINEERING.ipynb): `Task_4_FEATURE_ENGINEERING.ipynb`

### Model & strategy

- [Churn modeling & evaluation](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_5_PREDICTIVE_MODELLING.ipynb): `Task_5_PREDICTIVE_MODELLING.ipynb`
- [Risk-ranking recommendation](https://github.com/skysushant7366/bcgxdata-science/blob/main/Task_5_PREDICTIVE_MODELLING.ipynb): `Task_5_PREDICTIVE_MODELLING.ipynb`

### Other components

- **Retention decision makers**

## Connections

- Client records → Exploratory analysis: provides records (evidence: `README.md`)
- Price records → Exploratory analysis: provides records (evidence: `README.md`)
- Exploratory analysis → Cleaned dataset: prepares data (evidence: `README.md`)
- Cleaned dataset → Feature engineering: provides data (evidence: `README.md`)
- Feature engineering → Churn modeling & evaluation: provides features (evidence: `README.md`)
- Churn modeling & evaluation → Risk-ranking recommendation: supports ranking (evidence: `README.md`)
- Risk-ranking recommendation → Retention decision makers: guides retention (evidence: `README.md`)
