diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a490d6..4db4965 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,14 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/psf/black - rev: stable + rev: 24.4.2 hooks: - id: black - repo: local diff --git a/felimination/drift.py b/felimination/drift.py index 7565a1b..2903725 100644 --- a/felimination/drift.py +++ b/felimination/drift.py @@ -31,6 +31,7 @@ - `SampleSimilarityDriftRFE`: base class for drift-based sample similarity feature selection. """ + from collections import defaultdict from numbers import Integral diff --git a/felimination/rfe.py b/felimination/rfe.py index 7228cdf..d6a045c 100644 --- a/felimination/rfe.py +++ b/felimination/rfe.py @@ -6,6 +6,7 @@ - `PermutationImportanceRFECV`: recursive feature elimination with cross-validation based on permutation importance. """ + from collections import defaultdict from inspect import signature from numbers import Integral