Skip to content

Commit 23e3ab5

Browse files
Micky774punndcoder28
authored andcommitted
MNT Fixed linting error in plot_select_from_model_diabetes.py (scikit-learn#26915)
1 parent 640bfd5 commit 23e3ab5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/feature_selection/plot_select_from_model_diabetes.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@
153153
#
154154
# We begin by loading the Breast Cancer dataset, consisting of 30 different
155155
# features and 569 samples.
156-
from sklearn.datasets import load_breast_cancer
157156
import numpy as np
158157

158+
from sklearn.datasets import load_breast_cancer
159+
159160
breast_cancer_data = load_breast_cancer()
160161
X, y = breast_cancer_data.data, breast_cancer_data.target
161162
feature_names = np.array(breast_cancer_data.feature_names)
@@ -166,9 +167,9 @@
166167
# estimator with :class:`~sklearn.feature_selection.SequentialFeatureSelector`
167168
# to perform the feature selection.
168169
from sklearn.linear_model import LogisticRegression
170+
from sklearn.metrics import roc_auc_score
169171
from sklearn.pipeline import make_pipeline
170172
from sklearn.preprocessing import StandardScaler
171-
from sklearn.metrics import roc_auc_score
172173

173174
for tol in [-1e-2, -1e-3, -1e-4]:
174175
start = time()

0 commit comments

Comments
 (0)