diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2020-09-25 08:29:30 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2020-09-25 08:29:30 +0200 |
| commit | 0d463c119355cd37f3ea06cd5868938fb76cb0a6 (patch) | |
| tree | 6c17e89c46e0794cfd3a7d2c5f6104d9f5fd5bf3 /tree.py | |
| parent | 20d5b4fd8353388b15de96024ed12edea9cd0da9 (diff) | |
minor things
Diffstat (limited to 'tree.py')
| -rw-r--r-- | tree.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
