File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
claims_hosp/delphi_claims_hosp Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Weekday:
1818
1919 @staticmethod
2020 def get_params (data ):
21- """Correct a signal estimated as numerator/denominator for weekday effects.
21+ r """Correct a signal estimated as numerator/denominator for weekday effects.
2222
2323 The ordinary estimate would be numerator_t/denominator_t for each time point
2424 t. Instead, model
@@ -63,7 +63,7 @@ def get_params(data):
6363
6464 # Construct design matrix to have weekday indicator columns and then day
6565 # indicators.
66- X = np .zeros ((nums .shape [0 ], 6 + nums .shape [0 ]))
66+ X = np .zeros ((nums .shape [0 ], 6 + nums .shape [0 ])) # pylint: disable=invalid-name
6767 not_sunday = np .where (nums .index .dayofweek != 6 )[0 ]
6868 X [not_sunday , np .array (nums .index .dayofweek )[not_sunday ]] = 1
6969 X [np .where (nums .index .dayofweek == 6 )[0 ], :6 ] = - 1
You can’t perform that action at this time.
0 commit comments