How mohannimmalapudi2007-hue/hdi-prediction works
This is a Flask-based HDI prediction application backed by a saved linear-regression model. The documented workflow runs from socio-economic inputs through validation and model inference to a displayed score and HDI category. Training and dataset assets are represented as a separate branch; their detailed implementation was not sampled, so those relationships are documented at README level.
Main entry points: app.py Flask Routes · index.html Prediction Interface · HDI_Prediction.ipynb Training Notebook · hdi_model.pkl Saved Model
Components 9
Training Assets
- HDI Dataset
Dataset/hdr_general.csv - Training Notebook
notebooks/HDI_Prediction.ipynb - Saved Model
model/hdi_model.pkl
Prediction Web App
- Flask Routes
app.py - Input Validation
app.py - HDI Inference
app.py - Prediction Interface
templates/index.html - Interface Styles
static/style.css
Other components
- User
Connections 9
- User → Flask Routes: submits inputs
app.py - Flask Routes → Input Validation: validates inputs
app.py - Flask Routes → HDI Inference: runs prediction
app.py - HDI Inference → Saved Model: loads model
app.py - Flask Routes → Prediction Interface: renders result
app.py - Prediction Interface → User: shows score and category
README.md - HDI Dataset → Training Notebook: provides data
README.md - Training Notebook → Saved Model: saves trained model
README.md - Prediction Interface → Interface Styles: uses styles
README.md