A machine learning-based tool for predicting carbon emissions from flight routes. The project uses a Random Forest model to predict carbon emissions based on various flight characteristics.
- Data preprocessing and feature engineering for flight route data
- Machine learning model for carbon emission prediction
- Model evaluation and visualization tools
- Web interface for easy interaction (coming soon)
Carbon Emission Calculator/
├── src/
│ ├── data/
│ │ ├── data_loader.py
│ │ └── feature_engineering.py
│ ├── models/
│ │ ├── base_model.py
│ │ └── emission_model.py
│ ├── utils/
│ │ └── visualization.py
│ └── train.py
├── data/
│ └── airline_routes.json
├── requirements.txt
└── README.md
- Clone the repository:
git clone https://github.com/yourusername/carbon-emission-calculator.git
cd carbon-emission-calculator- Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtTo train the model and generate visualizations:
python src/train.pyThis will:
- Load and preprocess the flight route data
- Perform feature engineering
- Train the Random Forest model
- Generate performance visualizations
- Save results in the
training_resultsdirectory
The current model achieves:
- MSE: ~1.12e-07
- RMSE: ~0.0003
- R2 Score: ~0.9999
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.