https://medium.com/@monocosmo77/exploring-the-dynamics-of-sliced-inverse-regression-part3-machine-learning-2023-25d6901bf45f