This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
from isotree import IsolationForest as IsoTreeIsolationForest | |
from sklearn.datasets import make_classification | |
from sklearn.ensemble import IsolationForest as ScikitLearnIsolationForest | |
from sklearn.model_selection import train_test_split | |
def isotree_test(X1, X2, params): | |
iso = IsoTreeIsolationForest(ntrees=25, nthreads=-1, random_seed=259, **params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from multiprocessing import Pool | |
from os import sched_getaffinity | |
from timeit import timeit | |
import numpy as np | |
from joblib import Parallel, delayed | |
from sklearn.datasets import make_classification | |
from sklearn.ensemble import IsolationForest | |