We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc0360c commit 3c65eefCopy full SHA for 3c65eef
src/penn_chime/models.py
@@ -182,6 +182,8 @@ def get_loss(self) -> float:
182
183
184
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
187
peak_day = census_df.hospitalized.argmax()
188
losses_df = (census_df.hospitalized[:peak_day] - current_hospitalized) ** 2.0
189
return losses_df.argmin()
0 commit comments