You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always thought that the scenario weights applied to the linear regression is given by 1 / (n_ens * n_ts). However it's 1 / n_ens. I probably miss-interpreted this. The original code (v0.8.0) is here:
"To obtain robust MESMER parameter estimates for each ESM, MESMER is trained on all available ensemble members of each available scenario and equal weight is given to each scenario."
I think it's not 100% clear - you could argue that the historical scenario does get a bit more weight as it has more time steps. But saying the weight is 1 / n_ens is a just-as-valid interpretation of "equal weight for each scenario". So in conclusion there is nothing to do here (except maybe to adapt my comment).
Shouldn't n_scen be n_ens or n_runs? Or do you actually mean n_scen because if you were to weigh each sample by 1/n_scen scenarios with more members would be overrepresented.
Shouldn't n_scen be n_ens or n_runs? Or do you actually mean n_scen because if you were to weigh each sample by 1/n_scen scenarios with more members would be overrepresented.
Yes you are right - I mean n_ens. I'll correct it above.
I always thought that the scenario weights applied to the linear regression is given by
1 / (n_ens * n_ts)
. However it's1 / n_ens
. I probably miss-interpreted this. The original code (v0.8.0) is here:mesmer/mesmer/calibrate_mesmer/train_utils.py
Lines 50 to 58 in 13f048b
I refactored this in #143 and adapted the comment to
mesmer/mesmer/calibrate_mesmer/train_utils.py
Lines 14 to 15 in 456776d
but importantly the code stayed the same:
mesmer/mesmer/calibrate_mesmer/train_utils.py
Line 39 in 456776d
From Beusch et al. (2022):
I think it's not 100% clear - you could argue that the historical scenario does get a bit more weight as it has more time steps. But saying the weight is
1 / n_ens
is a just-as-valid interpretation of "equal weight for each scenario". So in conclusion there is nothing to do here (except maybe to adapt my comment).Originally commented in #567 (review)
edit: corrected
n_scen
->n_ens
The text was updated successfully, but these errors were encountered: