|
9 | 9 | import json
|
10 | 10 | import logging
|
11 | 11 | import math
|
12 |
| -import pickle # skipcq BAN-B301 |
13 | 12 | import os
|
| 13 | +import pickle # skipcq BAN-B301 |
14 | 14 | import re
|
15 | 15 | import sys
|
16 | 16 | import warnings
|
| 17 | + |
17 | 18 | import pandas as pd
|
18 | 19 |
|
19 | 20 | try:
|
|
29 | 30 | from .services import model_management as mm
|
30 | 31 | from .services import model_publish as mp
|
31 | 32 | from .services import model_repository as mr
|
32 |
| -from .utils.pymas import from_pickle |
33 | 33 | from .utils.misc import installed_packages
|
34 |
| - |
| 34 | +from .utils.pymas import from_pickle |
35 | 35 |
|
36 | 36 | logger = logging.getLogger(__name__)
|
37 | 37 |
|
@@ -301,8 +301,8 @@ def register_model(
|
301 | 301 | if create_project:
|
302 | 302 | out_var = []
|
303 | 303 | in_var = []
|
304 |
| - import zipfile as zp |
305 | 304 | import copy
|
| 305 | + import zipfile as zp |
306 | 306 |
|
307 | 307 | zip_file_copy = copy.deepcopy(zip_file)
|
308 | 308 | tmp_zip = zp.ZipFile(zip_file_copy)
|
@@ -765,7 +765,6 @@ def update_model_performance(data, model, label, refresh=True):
|
765 | 765 |
|
766 | 766 | # Upload the performance data to CAS
|
767 | 767 | with sess.as_swat(server=cas_id) as s:
|
768 |
| - |
769 | 768 | s.setsessopt(messagelevel="warning")
|
770 | 769 |
|
771 | 770 | with swat.options(exception_on_severity=2):
|
@@ -863,9 +862,10 @@ def get_project_kpis(
|
863 | 862 | A pandas DataFrame representing the MM_STD_KPI table. Note that SAS
|
864 | 863 | missing values are replaced with pandas valid missing values.
|
865 | 864 | """
|
866 |
| - from .core import is_uuid |
867 | 865 | from distutils.version import StrictVersion
|
868 | 866 |
|
| 867 | + from .core import is_uuid |
| 868 | + |
869 | 869 | # Check the pandas version for where the json_normalize function exists
|
870 | 870 | if pd.__version__ >= StrictVersion("1.0.3"):
|
871 | 871 | from pandas import json_normalize
|
|
0 commit comments