We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba0333 commit dab61dcCopy full SHA for dab61dc
causalpy/pymc_experiments.py
@@ -1082,6 +1082,12 @@ def _input_validation(self):
1082
"""The treated variable should be dummy coded. Consisting of 0's and 1's only.""" # noqa: E501
1083
)
1084
1085
+ if self.bandwidth <= 0:
1086
+ raise ValueError("The bandwidth must be greater than zero.")
1087
+
1088
+ if self.epsilon <= 0:
1089
+ raise ValueError("Epsilon must be greater than zero.")
1090
1091
def _is_treated(self, x):
1092
"""Returns ``True`` if `x` is greater than or equal to the treatment threshold.""" # noqa: E501
1093
return np.greater_equal(x, self.kink_point)
0 commit comments