How yasir-ansari88/crop-yield-prediction-risk-scoring works
Crop Yield Estimation is a Streamlit application and notebook-based ML project for estimating crop yields and analyzing yield drivers and low-yield risk. The dashboard workflow starts with a user exploring performance or entering crop, location, season, year, and input conditions; its core builds predictions, ranges, and risk estimates for display. Notebooks document the broader data-understanding-to-evaluation workflow, plus range and risk analysis. The dashboard source excerpts are partial, so the app-to-core call is shown as unverified; notebook sequencing follows the README.
Main entry points: core.py Core services · app.py Streamlit interface · 2. eda.ipynb Exploratory analysis · 3. data_preprocessing.ipynb Data preprocessing
Components 18
Dashboard
- Streamlit interface
dashboard/app.py
Prediction engine
- Core services
dashboard/core.py - Feature building
dashboard/core.py - Yield prediction
dashboard/core.py - Prediction ranges
dashboard/core.py - Low-yield risk
dashboard/core.py - Performance metrics
dashboard/core.py
Analysis notebooks
- Data understanding
notebook/1. data_understanding.ipynb - Exploratory analysis
notebook/2. eda.ipynb - Data preprocessing
notebook/3. data_preprocessing.ipynb - Feature engineering
notebook/4. feature_engineering.ipynb - Model training
notebook/5. model_training.ipynb - Model evaluation
notebook/6. model_evaluation.ipynb - Prediction ranges
notebook/7. Prediction_range.ipynb - Low-yield risk analysis
notebook/8- Low yield risk analysis.ipynb
Data and models
- Crop yield data
- Saved model artifacts
models
Other components
- Dashboard user
Connections 14
- Dashboard user → Streamlit interface: uses
README.md - Streamlit interface → Core services: uses services
dashboard/app.py - Core services → Crop yield data: loads data
dashboard/core.py - Core services → Saved model artifacts: loads artifacts
dashboard/core.py - Core services → Feature building: builds features
dashboard/core.py - Core services → Yield prediction: predicts yield
dashboard/core.py - Core services → Prediction ranges: computes ranges
dashboard/core.py - Core services → Low-yield risk: scores risk
dashboard/core.py - Core services → Performance metrics: computes metrics
dashboard/core.py - Data understanding → Exploratory analysis: followed by
README.md - Exploratory analysis → Data preprocessing: followed by
README.md - Data preprocessing → Feature engineering: followed by
README.md - Feature engineering → Model training: followed by
README.md - Model training → Model evaluation: followed by
README.md