Skip to content

Commit

Permalink
Update sarix.py to address missing values in input nhsn data
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 authored Nov 19, 2024
1 parent a37e9f2 commit 6b95c61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/idmodels/sarix.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def run(self, run_config):
df["xmas_spike"] = np.maximum(3 - np.abs(df["delta_xmas"]), 0)

xy_colnames = ["inc_trans_cs"] + self.model_config.x
df = df.query("wk_end_date >= '2022-10-01'").interpolate()
batched_xy = df[xy_colnames].values.reshape(len(df["location"].unique()), -1, len(xy_colnames))

sarix_fit_all_locs_theta_pooled = sarix.SARIX(
Expand Down

0 comments on commit 6b95c61

Please sign in to comment.