class_docstr: Abstract class representing predictions.
class_docstr_tok: ["Abstract","class","representing","predictions","."]
code: def __getitem__(self, name):
      if name == "mean":
          return self.mean
      elif name == "median":
          return self.median
  
      return self.quantile(name)
  
imports: import re
  import logging
  from dataclasses import field
  from typing import Callable, Dict, List, Optional, Union, Tuple
  import numpy
  import pandas
  from gluonts.core.component import validated
  from gluonts.pydantic import dataclass
  from gluonts import maybe
label_desc: Use image node_id 6 for calling the Forecast obj's underlying member method code with example usage: obj.__getitem__(name) and returns: self, self, self