1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-03 19:10:58 +08:00
This commit is contained in:
bxdd
2021-02-05 06:01:47 +00:00
committed by you-n-g
parent 0192f28bf4
commit 07b905c153

View File

@@ -172,7 +172,7 @@ class Cut(ElemOperator):
def __init__(self, feature, l=None, r=None):
self.l = l
self.r = r
if (not self.l is None and self.l <= 0) or (not self.r is None and self.r >= 0):
if (self.l is not None and self.l <= 0) or (self.r is not None and self.r >= 0):
raise ValueError("Cut operator l shoud > 0 and r should < 0")
super(Cut, self).__init__(feature)