A machine learning project that predicts the happiness score of countries based on factors like GDP, social support, life expectancy, freedom, and more.
-
Features
-
Getting Started
-
How It Works
-
Tech Stack
-
Contributing
-
License
-
Contact
📊 Predicts World Happiness Score based on real-world indicators
🔍 Understand key drivers behind national happiness
🎯 High-accuracy machine learning regression models
🌐 Visualize happiness distribution globally
📈 Explainable model with feature importance
Follow these steps to set up the project locally.
- Python 3.8+
- poetry (package and dependency manager)
git clone https://github.com/vgauss07/happiness_prediction.git
- Uses historical World Happiness Report datasets.
Features include:
-
GDP per capita
-
Social support
-
Healthy life expectancy
-
Freedom to make life choices
-
Generosity
-
Perceptions of corruption
-
Trains a machine learning model (e.g., Random Forest, XGBoost, or Gradient Boosting) to predict the Happiness Score.
-
Hyperparameter tuning using GridSearchCV.
-
Visualizes feature importance and country predictions.
- Python
- Pandas
- Scikit-learn
- Flask
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
-
Fork the Project
-
Create your Feature Branch (git checkout -b feature/YourFeature)
-
Commit your Changes (git commit -m 'Add some feature')
-
Push to the Branch (git push origin feature/YourFeature)
-
Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Created by Jeffrey Voke Ojuederhie — feel free to connect or collaborate!