# vaishnaviikommidi007/mlproject architecture

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

- Interactive diagram: https://gitdiagram.com/vaishnaviikommidi007/mlproject
- Repository: https://github.com/vaishnaviikommidi007/mlproject

## Overview

This is a Streamlit sales and inventory intelligence dashboard. Users navigate product history and analytics or request demand predictions with inventory-risk and replenishment guidance; the app also presents Walmart model performance. The sampled code shows feature calculations, risk/recommendation logic, and dashboard output, while the app is a single large module. The README provides no further documentation, and the excerpts do not show the full loading, routing, or inference flow, so uncertain connections are omitted or marked unverified.

Main entry points: [`app.py`](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py) (Streamlit app), [`data/Walmart.csv`](https://github.com/vaishnaviikommidi007/mlproject/blob/main/data/Walmart.csv) (Walmart data), [`models/walmart_lightgbm_model.pkl`](https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/walmart_lightgbm_model.pkl) (Walmart LightGBM), [`models/fmcg_xgboost_model.json`](https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/fmcg_xgboost_model.json) (FMCG XGBoost)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Dashboard"]
  node_app["Streamlit app<br/>[app.py]"]
end

subgraph group_intelligence["Sales and Inventory"]
  node_history["Product history<br/>[app.py]"]
  node_analytics["Sales analytics<br/>[app.py]"]
  node_forecast["Demand prediction<br/>[app.py]"]
  node_features["Forecast features<br/>[app.py]"]
  node_inventory["Inventory guidance<br/>[app.py]"]
end

subgraph group_assets["Data and Models"]
  node_walmart["Walmart data<br/>[Walmart.csv]"]
  node_walmart_model["Walmart LightGBM"]
  node_fmcg_model["FMCG XGBoost"]
  node_preprocessor["FMCG preprocessor"]
end

node_user(("Dashboard user"))

node_user -.->|"uses"| node_app
node_app -->|"renders"| node_history
node_app -->|"renders"| node_analytics
node_app -->|"presents"| node_forecast
node_forecast -.->|"builds"| node_features
node_forecast -.->|"informs"| node_inventory
node_app -.->|"loads"| node_walmart
node_app -.->|"loads"| node_walmart_model
node_app -.->|"loads"| node_fmcg_model
node_app -.->|"loads"| node_preprocessor

click node_app "https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py"
click node_history "https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py"
click node_analytics "https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py"
click node_forecast "https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py"
click node_features "https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py"
click node_inventory "https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py"
click node_walmart "https://github.com/vaishnaviikommidi007/mlproject/blob/main/data/Walmart.csv"
click node_walmart_model "https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/walmart_lightgbm_model.pkl"
click node_fmcg_model "https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/fmcg_xgboost_model.json"
click node_preprocessor "https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/fmcg_preprocessor.pkl"

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_user toneBlue
class node_history,node_analytics,node_forecast,node_features,node_inventory toneAmber
class node_walmart,node_walmart_model,node_fmcg_model,node_preprocessor toneMint
```

## Components

### Dashboard

- [Streamlit app](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py): `app.py`

### Sales and Inventory

- [Product history](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py): `app.py`
- [Sales analytics](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py): `app.py`
- [Demand prediction](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py): `app.py`
- [Forecast features](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py): `app.py`
- [Inventory guidance](https://github.com/vaishnaviikommidi007/mlproject/blob/main/app.py): `app.py`

### Data and Models

- [Walmart data](https://github.com/vaishnaviikommidi007/mlproject/blob/main/data/Walmart.csv): `data/Walmart.csv`
- [Walmart LightGBM](https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/walmart_lightgbm_model.pkl): `models/walmart_lightgbm_model.pkl`
- [FMCG XGBoost](https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/fmcg_xgboost_model.json): `models/fmcg_xgboost_model.json`
- [FMCG preprocessor](https://github.com/vaishnaviikommidi007/mlproject/blob/main/models/fmcg_preprocessor.pkl): `models/fmcg_preprocessor.pkl`

### Other components

- **Dashboard user**

## Connections

- Dashboard user → Streamlit app: uses
- Streamlit app → Product history: renders (evidence: `app.py`)
- Streamlit app → Sales analytics: renders (evidence: `app.py`)
- Streamlit app → Demand prediction: presents (evidence: `app.py`)
- Demand prediction → Forecast features: builds (evidence: `app.py`)
- Demand prediction → Inventory guidance: informs (evidence: `app.py`)
- Streamlit app → Walmart data: loads
- Streamlit app → Walmart LightGBM: loads
- Streamlit app → FMCG XGBoost: loads
- Streamlit app → FMCG preprocessor: loads
