File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import pytest
2
2
import warnings
3
- import os
4
3
import pandas as pd
5
4
import tempfile
6
5
from pathlib import Path
6
+ from sklearn .linear_model import LogisticRegression
7
+ from sklearn import datasets
7
8
8
9
from sasctl .pzmm import ModelParameters as mp
9
10
@@ -20,7 +21,6 @@ def bad_model():
20
21
@pytest .fixture
21
22
def train_data ():
22
23
"""Returns the Iris data set as (X, y)"""
23
- from sklearn import datasets
24
24
raw = datasets .load_iris ()
25
25
iris = pd .DataFrame (raw .data , columns = raw .feature_names )
26
26
iris = iris .join (pd .DataFrame (raw .target ))
@@ -33,7 +33,6 @@ def train_data():
33
33
@pytest .fixture
34
34
def sklearn_model (train_data ):
35
35
"""Returns a simple Scikit-Learn model"""
36
- from sklearn .linear_model import LogisticRegression
37
36
X , y = train_data
38
37
with warnings .catch_warnings ():
39
38
warnings .simplefilter ('ignore' )
You can’t perform that action at this time.
0 commit comments