Adopted from Ray core examples here: https://docs.ray.io/en/latest/ray-core/examples/automl_for_time_series.html