diff --git a/iso_forest.py b/iso_forest.py index 23e2fd3..497a94a 100644 --- a/iso_forest.py +++ b/iso_forest.py @@ -128,7 +128,7 @@ def __init__(self,x,itree): def find_path(self,T): if T.ntype == 'exNode': - if T.size == 1: return self.e + if T.size <= 1: return self.e else: self.e = self.e + c_factor(T.size) return self.e