diff --git a/claims_hosp/delphi_claims_hosp/weekday.py b/claims_hosp/delphi_claims_hosp/weekday.py index a8148b8ab..03b69cba4 100644 --- a/claims_hosp/delphi_claims_hosp/weekday.py +++ b/claims_hosp/delphi_claims_hosp/weekday.py @@ -18,7 +18,7 @@ class Weekday: @staticmethod def get_params(data): - """Correct a signal estimated as numerator/denominator for weekday effects. + r"""Correct a signal estimated as numerator/denominator for weekday effects. The ordinary estimate would be numerator_t/denominator_t for each time point t. Instead, model @@ -63,7 +63,7 @@ def get_params(data): # Construct design matrix to have weekday indicator columns and then day # indicators. - X = np.zeros((nums.shape[0], 6 + nums.shape[0])) + X = np.zeros((nums.shape[0], 6 + nums.shape[0])) # pylint: disable=invalid-name not_sunday = np.where(nums.index.dayofweek != 6)[0] X[not_sunday, np.array(nums.index.dayofweek)[not_sunday]] = 1 X[np.where(nums.index.dayofweek == 6)[0], :6] = -1