R^2 computation for different periods and different simulation results when adjusting tmin #782
-
Hello, For model validation using Model.plot() we should add a tmax= 'the end of the validation period' and do NOT use a tmin='the beggining of the validation period', right? I was doing it this way to have the R² for the validation period, but I have just realized the last value of the simulated head doesn't match the first value of the simulated head when validating (something to do with the constant d I imagine?)... Is there any other way of having the R² only for the validation period in PASTAS or should I use another package? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @lauramenezess, The best way to compute an R² for a specific period is to pass the tmin/tmax to I'm a bit confused why the first value of the simulated head is different to the last value when applying different periods in in Kind regards, Davíd |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hi @lauramenezess,
The best way to compute an R² for a specific period is to pass the tmin/tmax to
ml.stats.rsq(tmin=<tmin>, tmax=<tmax>)
. You can also do it manually by computing the residuals between tmin/tmax (res = ml.residuals(tmin=<tmin>, tmax=<tmax>)
) and passing that tops.stats.rsq(res=res)
.I'm a bit confused why the first value of the simulated head is different to the last value when applying different periods in in
Model.plot()
. Maybe you can upload your model as zip file (useml.to_file("model.pas")
and zip that file), or you could upload some results pictures of your model, so we can take a look? Pastas models have a warmup period, but this should be sufficiently long that …