mesmer.calibrate_mesmer.stack_predictors_and_targets

mesmer.calibrate_mesmer.stack_predictors_and_targets#

mesmer.calibrate_mesmer.stack_predictors_and_targets(preds, targs)#

Create single array of predictors, and single array of targets

Parameters:
  • preds (dict) – empty dictionary if none, else nested dictionary of predictors with keys

    • [pred][scen] (1d/ 2d arrays (time)/(run, time) of predictor for specific scenario)

  • targs (dict) – nested dictionary of targets with keys

    • [targ][scen] (3d array (run, time, gp) of target for specific scenario)

Returns:

  • X (dict of np.ndarray) – empty array if none, else 2d array (sample, pred) of predictors

  • y (dict of np.ndarray) – 3d array (sample, gp, targ) of targets