antoinecarme / pyaf

PyAF is an Open Source Python library for Automatic Time Series Forecasting built on top of popular pydata modules.
BSD 3-Clause "New" or "Revised" License
458 stars 73 forks source link

Forecast Quantiles Plots can be improved #225

Closed antoinecarme closed 1 year ago

antoinecarme commented 1 year ago

By looking at this jupyter notebook (large horizon models), in some forecast quantiles plots, the histograms are not visible at all

https://github.com/antoinecarme/pyaf/blob/3b6499491fd1ea2b237e5dae316591dfbde6af45/notebooks_sandbox/large_horizon/long_term_yosemite_tests.ipynb

image

antoinecarme commented 1 year ago

Proposed improvements :

  1. Better separate histograms (original issue solution). Assign a fixed height to each histogram.
  2. Use a more meaningful color map (gradient, Blue = Low, Green = Normal, Red = High) for synchronized histograms.
  3. Remove some unnecessary borders and yticks.
antoinecarme commented 1 year ago

Previous forecast quantiles plot (Ozone dataset)

image

New forecast quantiles plot (Ozone dataset)

image

antoinecarme commented 1 year ago

New forecast quantile plot for large horizon model (H = 512) from the jupyter notebook

image

antoinecarme commented 1 year ago

Further investigation shows that it is better to use the pre-defined matplotlib color map named 'turbo'.

image

This color map is the closest to the requested behavior and which has a more continuous color structure,

image

antoinecarme commented 1 year ago

CLOSED.

antoinecarme commented 1 year ago

Add a final touch for reducing unnecessary colors. Perform a quantization on 'turbo' color map.

image

image