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:
18
18
19
19
@staticmethod
20
20
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.
22
22
23
23
The ordinary estimate would be numerator_t/denominator_t for each time point
24
24
t. Instead, model
@@ -63,7 +63,7 @@ def get_params(data):
63
63
64
64
# Construct design matrix to have weekday indicator columns and then day
65
65
# 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
67
67
not_sunday = np .where (nums .index .dayofweek != 6 )[0 ]
68
68
X [not_sunday , np .array (nums .index .dayofweek )[not_sunday ]] = 1
69
69
X [np .where (nums .index .dayofweek == 6 )[0 ], :6 ] = - 1
You can’t perform that action at this time.
0 commit comments