From b9716b535b70c8b60bcff3b878c62057b32a538a Mon Sep 17 00:00:00 2001 From: Smart <47581948+hellocoldworld@users.noreply.github.com> Date: Mon, 3 May 2021 13:03:20 -0300 Subject: [PATCH] Update iso_forest.py --- iso_forest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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