|
@@ -28,12 +28,14 @@ from copy import deepcopy
|
|
from abc import ABC, abstractmethod, abstractproperty
|
|
from abc import ABC, abstractmethod, abstractproperty
|
|
|
|
|
|
if (sys.version_info.major == 3) & (sys.version_info.minor >= 8):
|
|
if (sys.version_info.major == 3) & (sys.version_info.minor >= 8):
|
|
|
|
+ print("I have python version {}.{} and will import typing".format(sys.version_info.major, sys.version_info.minor))
|
|
from typing import Callable, TypedDict,\
|
|
from typing import Callable, TypedDict,\
|
|
Literal, Dict, Iterable, List, Tuple, Union
|
|
Literal, Dict, Iterable, List, Tuple, Union
|
|
else:
|
|
else:
|
|
- from typing_extensions import *
|
|
|
|
- # from typing_extensions import Callable, TypedDict,\
|
|
|
|
- # Literal, Dict, Iterable, List, Tuple, Union
|
|
|
|
|
|
+ # from typing_extensions import *
|
|
|
|
+ print("I have python version {}.{} and will import typing_extensions".format(sys.version_info.major, sys.version_info.minor))
|
|
|
|
+ from typing_extensions import Callable, TypedDict,\
|
|
|
|
+ Literal, Dict, Iterable, List, Tuple, Union
|
|
|
|
|
|
import functools
|
|
import functools
|
|
from sklearn.pipeline import Pipeline
|
|
from sklearn.pipeline import Pipeline
|
|
@@ -41,7 +43,7 @@ from sklearn.model_selection import cross_validate as sklearn_cross_validation
|
|
from sklearn.metrics import make_scorer
|
|
from sklearn.metrics import make_scorer
|
|
from hyperopt import STATUS_OK, STATUS_FAIL
|
|
from hyperopt import STATUS_OK, STATUS_FAIL
|
|
from cdplib.log import Log
|
|
from cdplib.log import Log
|
|
-from cdplib.utils import ExceptionsHandler
|
|
|
|
|
|
+from cdplib.utils.ExceptionsHandler import ExceptionsHandler
|
|
from cdplib.utils import LoadingUtils
|
|
from cdplib.utils import LoadingUtils
|
|
from cdplib.ml_validation import CVComposer
|
|
from cdplib.ml_validation import CVComposer
|
|
|
|
|