def _get_best_detector(self, train): detector = ensemble.IsolationForest() detector.fit(train) return detector