# rushipatel2/classification-ml-model architecture

> Architecture diagram of the GitHub repository rushipatel2/classification-ml-model, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rushipatel2/classification-ml-model
- Repository: https://github.com/rushipatel2/classification-ml-model

## Overview

This repository is a business-sales classification project: it reshapes daily tender and hourly sales data, derives a per-location high/low target, creates train/test sets, fits and evaluates classifiers, and provides an interactive prediction dashboard. The orchestrator owns the preparation and modeling calls; deployment is launched separately. Source excerpts establish those runtime relationships. No README was provided, so coverage reflects the sampled code and tree.

Main entry points: [`project-03-12Deviant-main/src/classification.py`](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/classification.py) (Pipeline orchestrator), [`project-03-12Deviant-main/src/deploy.py`](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py) (Streamlit dashboard), [`project-03-12Deviant-main/config.py`](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/config.py) (Path configuration), [`project-03-12Deviant-main/src/modeling.py`](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/modeling.py) (Classifier training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_collection["Data collection<br/>[dataprep.py]"]
  node_cleaning["Sales data cleaning<br/>[dataprep.py]"]
  node_split["Feature engineering and split<br/>[dataprep.py]"]
  node_rawdata["Raw sales data"]
  node_processed["Processed datasets"]
end

subgraph group_model["Modeling and evaluation"]
  node_training["Classifier training<br/>[modeling.py]"]
  node_evaluation["Test evaluation<br/>[modeling.py]"]
  node_models["Saved models and features"]
  node_results["Evaluation results"]
end

subgraph group_app["Prediction dashboard"]
  node_dashboard["Streamlit dashboard<br/>[deploy.py]"]
  node_userinputs["Prediction inputs<br/>[deploy.py]"]
  node_prediction["Sales class prediction<br/>[deploy.py]"]
end

subgraph group_infra["Configuration"]
  node_config["Path configuration<br/>[config.py]"]
end

node_operator(("Pipeline operator"))
node_pipeline["Pipeline orchestrator<br/>[classification.py]"]

node_operator -->|"runs"| node_pipeline
node_pipeline -->|"calls"| node_collection
node_pipeline -->|"calls"| node_cleaning
node_pipeline -->|"calls"| node_split
node_pipeline -->|"calls"| node_training
node_pipeline -->|"calls"| node_evaluation
node_cleaning -->|"reads"| node_rawdata
node_cleaning -->|"writes"| node_processed
node_split -->|"reads and writes"| node_processed
node_training -->|"reads"| node_processed
node_training -->|"writes"| node_models
node_training -->|"writes"| node_results
node_evaluation -->|"reads"| node_processed
node_evaluation -->|"loads"| node_models
node_evaluation -->|"writes"| node_results
node_operator -->|"launches separately"| node_dashboard
node_dashboard -->|"reads"| node_results
node_dashboard -->|"loads"| node_models
node_userinputs -->|"provides features"| node_dashboard
node_dashboard -->|"predicts"| node_prediction
node_collection -->|"uses paths"| node_config
node_cleaning -->|"uses paths"| node_config
node_split -->|"uses paths"| node_config
node_training -->|"uses paths"| node_config
node_evaluation -->|"uses paths"| node_config
node_dashboard -->|"uses paths"| node_config

click node_pipeline "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/classification.py"
click node_collection "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/dataprep.py"
click node_cleaning "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/dataprep.py"
click node_split "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/dataprep.py"
click node_rawdata "https://github.com/rushipatel2/classification-ml-model/tree/main/project-03-12Deviant-main/data/processed"
click node_processed "https://github.com/rushipatel2/classification-ml-model/tree/main/project-03-12Deviant-main/data/processed"
click node_training "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/modeling.py"
click node_evaluation "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/modeling.py"
click node_dashboard "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py"
click node_userinputs "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py"
click node_prediction "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py"
click node_config "https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/config.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_collection,node_cleaning,node_split,node_rawdata,node_processed toneBlue
class node_training,node_evaluation,node_models,node_results toneAmber
class node_dashboard,node_userinputs,node_prediction toneMint
class node_config toneRose
class node_operator toneIndigo
class node_pipeline toneTeal
```

## Components

### Data preparation

- [Data collection](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/dataprep.py): `project-03-12Deviant-main/src/dataprep.py`
- [Sales data cleaning](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/dataprep.py): `project-03-12Deviant-main/src/dataprep.py`
- [Feature engineering and split](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/dataprep.py): `project-03-12Deviant-main/src/dataprep.py`
- [Raw sales data](https://github.com/rushipatel2/classification-ml-model/tree/main/project-03-12Deviant-main/data/processed): `project-03-12Deviant-main/data/processed`
- [Processed datasets](https://github.com/rushipatel2/classification-ml-model/tree/main/project-03-12Deviant-main/data/processed): `project-03-12Deviant-main/data/processed`

### Modeling and evaluation

- [Classifier training](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/modeling.py): `project-03-12Deviant-main/src/modeling.py`
- [Test evaluation](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/modeling.py): `project-03-12Deviant-main/src/modeling.py`
- **Saved models and features**
- **Evaluation results**

### Prediction dashboard

- [Streamlit dashboard](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py): `project-03-12Deviant-main/src/deploy.py`
- [Prediction inputs](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py): `project-03-12Deviant-main/src/deploy.py`
- [Sales class prediction](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/deploy.py): `project-03-12Deviant-main/src/deploy.py`

### Configuration

- [Path configuration](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/config.py): `project-03-12Deviant-main/config.py`

### Other components

- **Pipeline operator**
- [Pipeline orchestrator](https://github.com/rushipatel2/classification-ml-model/blob/main/project-03-12Deviant-main/src/classification.py): `project-03-12Deviant-main/src/classification.py`

## Connections

- Pipeline operator → Pipeline orchestrator: runs (evidence: `project-03-12Deviant-main/src/classification.py`)
- Pipeline orchestrator → Data collection: calls (evidence: `project-03-12Deviant-main/src/classification.py`)
- Pipeline orchestrator → Sales data cleaning: calls (evidence: `project-03-12Deviant-main/src/classification.py`)
- Pipeline orchestrator → Feature engineering and split: calls (evidence: `project-03-12Deviant-main/src/classification.py`)
- Pipeline orchestrator → Classifier training: calls (evidence: `project-03-12Deviant-main/src/classification.py`)
- Pipeline orchestrator → Test evaluation: calls (evidence: `project-03-12Deviant-main/src/classification.py`)
- Sales data cleaning → Raw sales data: reads (evidence: `project-03-12Deviant-main/src/dataprep.py`)
- Sales data cleaning → Processed datasets: writes (evidence: `project-03-12Deviant-main/src/dataprep.py`)
- Feature engineering and split → Processed datasets: reads and writes (evidence: `project-03-12Deviant-main/src/dataprep.py`)
- Classifier training → Processed datasets: reads (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Classifier training → Saved models and features: writes (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Classifier training → Evaluation results: writes (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Test evaluation → Processed datasets: reads (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Test evaluation → Saved models and features: loads (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Test evaluation → Evaluation results: writes (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Pipeline operator → Streamlit dashboard: launches separately
- Streamlit dashboard → Evaluation results: reads (evidence: `project-03-12Deviant-main/src/deploy.py`)
- Streamlit dashboard → Saved models and features: loads (evidence: `project-03-12Deviant-main/src/deploy.py`)
- Prediction inputs → Streamlit dashboard: provides features (evidence: `project-03-12Deviant-main/src/deploy.py`)
- Streamlit dashboard → Sales class prediction: predicts (evidence: `project-03-12Deviant-main/src/deploy.py`)
- Data collection → Path configuration: uses paths (evidence: `project-03-12Deviant-main/src/dataprep.py`)
- Sales data cleaning → Path configuration: uses paths (evidence: `project-03-12Deviant-main/src/dataprep.py`)
- Feature engineering and split → Path configuration: uses paths (evidence: `project-03-12Deviant-main/src/dataprep.py`)
- Classifier training → Path configuration: uses paths (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Test evaluation → Path configuration: uses paths (evidence: `project-03-12Deviant-main/src/modeling.py`)
- Streamlit dashboard → Path configuration: uses paths (evidence: `project-03-12Deviant-main/src/deploy.py`)
