We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c156ec commit 7c3b1b5Copy full SHA for 7c3b1b5
src/penn_chime/models.py
@@ -82,6 +82,11 @@ def __init__(self, p: Parameters):
82
for i_day in range(p.n_days):
83
self.i_day = i_day
84
raw = self.run_projection(p, self.gen_policy(p))
85
+
86
+ # Don't fit against results that put the peak before the present day
87
+ if raw["census_hospitalized"].argmax() < i_day:
88
+ continue
89
90
loss = get_loss(raw["census_hospitalized"][i_day], p.current_hospitalized)
91
if loss < best_i_day_loss:
92
best_i_day_loss = loss
0 commit comments