Skip to content

Commit 604fc80

Browse files
committed
linting
1 parent 0f899bd commit 604fc80

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

ml_grid/pipeline/data_feature_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def getNFeaturesMarkovBlanket(
145145
if hasattr(model_to_use, "set_params"):
146146
try:
147147
model_to_use.set_params(verbose=False)
148-
except:
148+
except Exception:
149149
pass
150150
if hasattr(model_to_use, "verbose"):
151151
model_to_use.verbose = False

ml_grid/pipeline/grid_search_cross_validate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
# from sklearn.utils.testing import ignore_warnings
3333
from sklearn.exceptions import ConvergenceWarning
34-
from sklearn.metrics import *
3534
from sklearn.model_selection import (
3635
ParameterGrid,
3736
RepeatedKFold,

ml_grid/pipeline/test_data_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import tempfile
1111
import unittest
1212
from pathlib import Path
13-
13+
import sys
1414
import numpy as np
1515
import pandas as pd
1616

ml_grid/results_processing/plot_features.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import warnings
88
from typing import List, Optional, Tuple
9-
9+
from ml_grid.results_processing.core import get_clean_data
1010
import matplotlib.pyplot as plt
1111
import pandas as pd
1212
import seaborn as sns
@@ -28,8 +28,6 @@
2828
stacklevel=2,
2929
)
3030

31-
from ml_grid.results_processing.core import get_clean_data
32-
3331

3432
class FeatureAnalysisPlotter:
3533
"""A class for creating feature analysis and importance visualizations."""

ml_grid/util/validate_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def validate_parameters_helper(
102102
Dict[str, Any]: The validated parameters dictionary.
103103
"""
104104

105-
if type(algorithm_implementation) == KNeighborsClassifier:
105+
if isinstance(algorithm_implementation, KNeighborsClassifier):
106106

107107
parameters = validate_knn_parameters(parameters, ml_grid_object)
108108

0 commit comments

Comments
 (0)