class_docstr: Tracker which sources information from .pickle files providing
  configurations of ensemble members and the ensembles' performances.
class_docstr_tok: ["Tracker","which","sources","information","from",".pickle","files","providing","configurations","of","ensemble","members","and","the","ensembles","'","performances","."]
docstr: Args:
      files: Directory from which to load the files non-recursively.
docstr_tok: ["Args",":","files",":","Directory","from","which","to","load","the","files","non-recursively","."]
code: def __init__(self, directory: Path):
      """
      Args:
          files: Directory from which to load the files non-recursively.
      """
      configurations = []
      performances = []
      for file in os.listdir(directory):
          if not file.endswith(".pickle"):
              continue
          with Path(file).open("rb") as f:
              data = pickle.load(f)
              configurations.extend(
                  [
                      Config(
                          frozenset(x["configurations"]), x["dataset"]
                      )
                      for x in data
                  ]
              )
              performances.extend([x["performance"] for x in data])
  
      self.performance_map: Dict[
          Config[EnsembleConfig], Performance
      ] = dict(zip(configurations, performances))
  
file_path: gluonts/src/gluonts/nursery/tsbench/src/tsbench/evaluations/tracking/ensemble.py
imports: import os
  import pickle
  from pathlib import Path
  from typing import Dict, List
  from tsbench.config import Config, EnsembleConfig
  from tsbench.evaluations.metrics import Performance
  from ._base import Tracker
  from ._evaluations import Evaluations
label_desc: Use image node_id 1 to create a new EnsembleTracker object from inherited base classes: Tracker with example: obj = EnsembleTracker(directory)