Forecasting monthly aviation fuel demand using machine learning
This code can be used for forecasting aviation fuel demand with monthly resolution. Machine learning models can be trained using varying input data to analyze different scenarios.
The script pipeline.py can be used to access the whole pipeline of the forecast. Parameters can be adjusted for every step of the pipeline, with the option to train new models from scratch. To run the pipeline, clone the repo. The pipeline needs the given folder structure and containing files to run.
- Takes a set of values for each model parameter
- Each possible set of parameters generates one model
- Saves models to disc, model information to summary excel file
- Takes models and adds covid data using partial training with varying intensities ('Covid impacts')
- Each covid impact generates one new sbs model (covid impact model)
- Takes models (base or sbs) to create long term forecast
- Calculates average feature impact to find optimal number of rolled features
- Calculates feature importance (or impact) given one model
- Extracts tsfresh features from raw time series
- Plots the error over varying covid impacts
- Used to copy multiple model files
- To avoid memory hog, these scripts are used to restart train scripts if many models are trained at once
