Skip to content

Commit 3c65eef

Browse files
committed
Comment with link to #381
1 parent cc0360c commit 3c65eef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/penn_chime/models.py

+2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ def get_loss(self) -> float:
182182

183183

184184
def get_argmin_ds(census_df: pd.DataFrame, current_hospitalized: float) -> float:
185+
# By design, this forbids choosing a day after the peak
186+
# If that's a problem, see #381
185187
peak_day = census_df.hospitalized.argmax()
186188
losses_df = (census_df.hospitalized[:peak_day] - current_hospitalized) ** 2.0
187189
return losses_df.argmin()

0 commit comments

Comments
 (0)