mesmer.calibrate_mesmer.get_scenario_weights#
- mesmer.calibrate_mesmer.get_scenario_weights(target)#
derive scenario weights such that each has equal weight, i.e., 1 / number of samples (= nr_runs * nr_ts)
- Parameters:
target (dict) – dictionary of targets with key
[scen] (3d array (run, time, gp) of target for specific scenario)
- Returns:
wgt_scen_eq (np.ndarray) – 1d array (sample) of sample weights based on equal treatment of each scenario (if scen has more samples, each sample gets less weight)