summaryrefslogtreecommitdiff
path: root/tree.py
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2020-09-25 08:29:30 +0200
committerMike Vink <mike1994vink@gmail.com>2020-09-25 08:29:30 +0200
commit0d463c119355cd37f3ea06cd5868938fb76cb0a6 (patch)
tree6c17e89c46e0794cfd3a7d2c5f6104d9f5fd5bf3 /tree.py
parent20d5b4fd8353388b15de96024ed12edea9cd0da9 (diff)
minor things
Diffstat (limited to 'tree.py')
-rw-r--r--tree.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tree.py b/tree.py
index e971bd4..3a073ac 100644
--- a/tree.py
+++ b/tree.py
@@ -1,10 +1,10 @@
import numpy as np
-import cProfile
-import pstats
+# import cProfile
+# import pstats
# import tqdm
# from tqdm import trange
-from pstats import SortKey
+# from pstats import SortKey
from sklearn import metrics
# age,married,house,income,gender,class
@@ -252,7 +252,7 @@ def update_mask(mask, current_mask):
equal to the total number of rows in dataset x.
"""
copy = np.array(current_mask, copy=True)
- copy[np.where(current_mask)] = mask
+ copy[current_mask == True] = mask
return copy