class_docstr: A type-safe wrapper for a list of quantile forecasts, stored as NumPy
  arrays.
class_docstr_tok: ["A","type-safe","wrapper","for","a","list","of","quantile","forecasts",",","stored","as","NumPy","arrays","."]
docstr: Loads the quantile forecasts from the specified path.
  
  Args:
      path: The path from where to load the forecasts.
docstr_tok: ["Loads","the","quantile","forecasts","from","the","specified","path",".","Args",":","path",":","The","path","from","where","to","load","the","forecasts","."]
code: def load(cls, path: Path) -> QuantileForecasts:
      """
      Loads the quantile forecasts from the specified path.
  
      Args:
          path: The path from where to load the forecasts.
      """
      try:
          with (path / "values.npy").open("rb") as f:
              values = np.load(f)
      except FileNotFoundError:
          # This is a bug in the publicly available evaluations for MQ-RNN.
          # Should not be called otherwise.
          with (path / "values.npz").open("rb") as f:
              values = np.load(f)
      with (path / "metadata.npz").open("rb") as f:
          metadata = np.load(f, allow_pickle=True).item()
      return QuantileForecasts(
          values=values,
          start_dates=metadata["start_dates"],
          item_ids=metadata["item_ids"],
          freq=metadata["freq"],
          quantiles=metadata["quantiles"],
      )
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/forecasts/quantile.py
imports: from __future__ import annotations
  from dataclasses import dataclass
  from pathlib import Path
  from typing import List
  import numpy
  import numpy.typing
  import pandas
  from gluonts.model.forecast import QuantileForecast
  from gluonts.time_feature import get_seasonality
label_desc: Use image node_id 7 for calling the QuantileForecasts obj's underlying member method code with example usage: obj.load(cls, path) and returns: QuantileForecasts