Skip to content

Commit

Permalink
MNT Fixed linting error in plot_select_from_model_diabetes.py (scik…
Browse files Browse the repository at this point in the history
  • Loading branch information
Micky774 committed Jul 27, 2023
1 parent e54f678 commit 9e09e4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/feature_selection/plot_select_from_model_diabetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,10 @@
#
# We begin by loading the Breast Cancer dataset, consisting of 30 different
# features and 569 samples.
from sklearn.datasets import load_breast_cancer
import numpy as np

from sklearn.datasets import load_breast_cancer

breast_cancer_data = load_breast_cancer()
X, y = breast_cancer_data.data, breast_cancer_data.target
feature_names = np.array(breast_cancer_data.feature_names)
Expand All @@ -166,9 +167,9 @@
# estimator with :class:`~sklearn.feature_selection.SequentialFeatureSelector`
# to perform the feature selection.
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import roc_auc_score
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import roc_auc_score

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

0 comments on commit 9e09e4d

Please sign in to comment.