# hemanth-maddala/flipkart_hackathon architecture

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

- Interactive diagram: https://gitdiagram.com/hemanth-maddala/flipkart_hackathon
- Repository: https://github.com/hemanth-maddala/flipkart_hackathon

## Overview

This appears to be a notebook-based traffic prediction project: the traffic dataset provides training and test data, notebooks contain the analysis/modeling work, and CSV files represent competition submissions. The tree suggests several model-specific submissions and an ensemble, but no README or source excerpts are available to verify execution order or how the notebooks use the data. Accordingly, the relationships below are dashed and unverified.

Main entry points: [`main.ipynb`](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main.ipynb) (Main notebook), [`traffic_dataset/dataset/train.csv`](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/train.csv) (Training data), [`traffic_dataset/dataset/test.csv`](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/test.csv) (Test data), [`main_fully_fixed.ipynb`](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main_fully_fixed.ipynb) (Fixed notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Traffic data"]
  node_train["Training data<br/>[train.csv]"]
  node_test["Test data<br/>[test.csv]"]
  node_sample["Sample submission"]
end

subgraph group_notebooks["Modeling notebooks"]
  node_main["Main notebook<br/>[main.ipynb]"]
  node_fixed1["Fixed notebook"]
  node_fixed2["Fixed notebook 2"]
end

subgraph group_outputs["Submission outputs"]
  node_final["Final submission"]
  node_ensemble["Ensemble submission"]
  node_lgb["LightGBM submission<br/>[submission_lgb.csv]"]
  node_lr["Logistic regression submission<br/>[submission_lr.csv]"]
  node_rf["Random forest submission<br/>[submission_rf.csv]"]
  node_rf2["Random forest submission 2<br/>[submission_rf2.csv]"]
  node_rf3["Random forest submission 3<br/>[submission_rf3.csv]"]
  node_rf4["Random forest submission 4<br/>[submission_rf4.csv]"]
  node_rf5["Random forest submission 5<br/>[submission_rf5.csv]"]
  node_xgb["XGBoost submission<br/>[submission_xgb.csv]"]
end

node_train -.->|"models from"| node_main
node_test -.->|"predicts from"| node_main
node_sample -.->|"may guide format"| node_main
node_train -.->|"models from"| node_fixed1
node_test -.->|"predicts from"| node_fixed1
node_train -.->|"models from"| node_fixed2
node_test -.->|"predicts from"| node_fixed2
node_main -.->|"may produce"| node_final
node_main -.->|"may produce"| node_ensemble
node_main -.->|"may produce"| node_lgb
node_main -.->|"may produce"| node_lr
node_main -.->|"may produce"| node_rf
node_main -.->|"may produce"| node_rf2
node_main -.->|"may produce"| node_rf3
node_main -.->|"may produce"| node_rf4
node_main -.->|"may produce"| node_rf5
node_main -.->|"may produce"| node_xgb
node_fixed1 -.->|"may produce"| node_final
node_fixed2 -.->|"may produce"| node_final

click node_train "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/train.csv"
click node_test "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/test.csv"
click node_sample "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/sample_submission.csv"
click node_main "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main.ipynb"
click node_fixed1 "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main_fully_fixed.ipynb"
click node_fixed2 "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main_fully_fixed_2.ipynb"
click node_final "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/final_submission.csv"
click node_ensemble "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_ensemble.csv"
click node_lgb "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_lgb.csv"
click node_lr "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_lr.csv"
click node_rf "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf.csv"
click node_rf2 "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf2.csv"
click node_rf3 "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf3.csv"
click node_rf4 "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf4.csv"
click node_rf5 "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf5.csv"
click node_xgb "https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_xgb.csv"

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_train,node_test,node_sample toneBlue
class node_main,node_fixed1,node_fixed2 toneAmber
class node_final,node_ensemble,node_lgb,node_lr,node_rf,node_rf2,node_rf3,node_rf4,node_rf5,node_xgb toneMint
```

## Components

### Traffic data

- [Training data](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/train.csv): `traffic_dataset/dataset/train.csv`
- [Test data](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/test.csv): `traffic_dataset/dataset/test.csv`
- [Sample submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/traffic_dataset/dataset/sample_submission.csv): `traffic_dataset/dataset/sample_submission.csv`

### Modeling notebooks

- [Main notebook](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main.ipynb): `main.ipynb`
- [Fixed notebook](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main_fully_fixed.ipynb): `main_fully_fixed.ipynb`
- [Fixed notebook 2](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/main_fully_fixed_2.ipynb): `main_fully_fixed_2.ipynb`

### Submission outputs

- [Final submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/final_submission.csv): `final_submission.csv`
- [Ensemble submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_ensemble.csv): `submission_ensemble.csv`
- [LightGBM submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_lgb.csv): `submission_lgb.csv`
- [Logistic regression submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_lr.csv): `submission_lr.csv`
- [Random forest submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf.csv): `submission_rf.csv`
- [Random forest submission 2](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf2.csv): `submission_rf2.csv`
- [Random forest submission 3](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf3.csv): `submission_rf3.csv`
- [Random forest submission 4](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf4.csv): `submission_rf4.csv`
- [Random forest submission 5](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_rf5.csv): `submission_rf5.csv`
- [XGBoost submission](https://github.com/hemanth-maddala/flipkart_hackathon/blob/main/submission_xgb.csv): `submission_xgb.csv`

## Connections

- Training data → Main notebook: models from
- Test data → Main notebook: predicts from
- Sample submission → Main notebook: may guide format
- Training data → Fixed notebook: models from
- Test data → Fixed notebook: predicts from
- Training data → Fixed notebook 2: models from
- Test data → Fixed notebook 2: predicts from
- Main notebook → Final submission: may produce
- Main notebook → Ensemble submission: may produce
- Main notebook → LightGBM submission: may produce
- Main notebook → Logistic regression submission: may produce
- Main notebook → Random forest submission: may produce
- Main notebook → Random forest submission 2: may produce
- Main notebook → Random forest submission 3: may produce
- Main notebook → Random forest submission 4: may produce
- Main notebook → Random forest submission 5: may produce
- Main notebook → XGBoost submission: may produce
- Fixed notebook → Final submission: may produce
- Fixed notebook 2 → Final submission: may produce
