# abishek-viswajith/sugarcane-yield-prediction architecture

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

- Interactive diagram: https://gitdiagram.com/abishek-viswajith/sugarcane-yield-prediction
- Repository: https://github.com/abishek-viswajith/sugarcane-yield-prediction

## Overview

This is a small Streamlit application for predicting sugarcane yield from an NDVI value. The user enters a value and requests a prediction; the app passes it to a serialized model and displays the predicted yield. The workflow is implemented in one source file, so the input, inference, and result presentation are represented together. The README describes the product but adds no further capabilities.

Main entry points: [`app.py`](https://github.com/abishek-viswajith/sugarcane-yield-prediction/blob/main/app.py) (Prediction app), [`yield_model.pkl`](https://github.com/abishek-viswajith/sugarcane-yield-prediction/blob/main/yield_model.pkl) (Trained model)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_app["Prediction app<br/>[app.py]"]
node_model["Trained model<br/>[yield_model.pkl]"]

node_user -->|"enters NDVI"| node_app
node_app -->|"loads and predicts"| node_model
node_app -->|"shows yield"| node_user

click node_app "https://github.com/abishek-viswajith/sugarcane-yield-prediction/blob/main/app.py"
click node_model "https://github.com/abishek-viswajith/sugarcane-yield-prediction/blob/main/yield_model.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_user toneBlue
class node_app toneTeal
class node_model toneIndigo
```

## Components

### Other components

- **User**
- [Prediction app](https://github.com/abishek-viswajith/sugarcane-yield-prediction/blob/main/app.py): `app.py`
- [Trained model](https://github.com/abishek-viswajith/sugarcane-yield-prediction/blob/main/yield_model.pkl): `yield_model.pkl`

## Connections

- User → Prediction app: enters NDVI (evidence: `app.py`)
- Prediction app → Trained model: loads and predicts (evidence: `app.py`)
- Prediction app → User: shows yield (evidence: `app.py`)
