The objective is to create a tool that can combine predictions from two different models, whether it is a regression or classification task. Generally, when doing time series for example, we can use traditional econometric models or more sophisticated Machine and Deep Learning models. Generally, econometric models provide good short-term predictions but poor long-term predictions while some Deep Learning models provide very good long-term predictions. Thanks to these classes, it is now possible to merge two forecast vectors according to an exponential coefficient: we give more weight in the short term to the forecasts of the first model (the econometric model for example) and conversely, we give more weight to the forecasts of the second model in the long term (Deep Learning model for example).
For the moment, two class with several functions are available:
The JoiningRegressor class for regression task;
The JoiningClassifier class for classification task.
- Python version 3.9.7
- Install requirements.txt
$ pip install -r requirements.txt
- Librairies used
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
- requirements
- This folder contains a .txt file with all the packages and versions needed to run the project.
- joining_class
- This folder contains a .py file with all class, functions and methods.
- example
- This folder contains an example notebook to better understand how to use the different class and functions, and their outputs.
Here is the project pattern:
- project
> hybrid-learning-prototype
> requirements
- requirements.txt
> codefile
- joining_class.py
> example
- joining_class.ipynb