class_docstr: HDD results.
docstr: Load saved predictions.
docstr_tok: ["Load","saved","predictions","."]
code: def load_predictions(self, cv_fold, train_or_test):
      """Load saved predictions."""
      for strategy_name, dataset_name in self._iter():
          key = (
              self._generate_key(
                  strategy_name,
                  dataset_name,
                  cv_fold,
                  train_or_test=train_or_test,
              )
              + ".csv"
          )
          results = pd.read_csv(key, header=0)
          index = results.loc[:, "index"].values
          y_true = results.loc[:, "y_true"].values
          y_pred = results.loc[:, "y_pred"].values
          fit_estimator_start_time = results.loc[
              0, "fit_estimator_start_time"
          ]
          fit_estimator_end_time = results.loc[
              0, "fit_estimator_end_time"
          ]
          predict_estimator_start_time = results.loc[
              0, "predict_estimator_start_time"
          ]
          predict_estimator_end_time = results.loc[
              0, "predict_estimator_end_time"
          ]
          yield _PredictionsWrapper(
              strategy_name,
              dataset_name,
              index,
              y_true,
              y_pred,
              fit_estimator_start_time,
              fit_estimator_end_time,
              predict_estimator_start_time,
              predict_estimator_end_time,
          )
  
imports: import os
  import numpy
  import pandas
  from joblib import load
  from sktime.benchmarking.base import BaseResults, HDDBaseResults, _PredictionsWrapper
label_desc: Use image node_id 2 for calling the HDDResults obj's underlying member method code with example usage: obj.load_predictions(cv_fold, train_or_test) without return types