|
@@ -26,8 +26,14 @@ import numpy as np
|
|
import pandas as pd
|
|
import pandas as pd
|
|
from copy import deepcopy
|
|
from copy import deepcopy
|
|
from abc import ABC, abstractmethod, abstractproperty
|
|
from abc import ABC, abstractmethod, abstractproperty
|
|
-from typing import Callable, TypedDict,\
|
|
|
|
|
|
+
|
|
|
|
+if sys.version_info >= (3, 8):
|
|
|
|
+ from typing import Callable, TypedDict,\
|
|
|
|
+ Literal, Dict, Iterable, List, Tuple, Union
|
|
|
|
+else:
|
|
|
|
+ from typing_extensions import Callable, TypedDict,\
|
|
Literal, Dict, Iterable, List, Tuple, Union
|
|
Literal, Dict, Iterable, List, Tuple, Union
|
|
|
|
+
|
|
import functools
|
|
import functools
|
|
from sklearn.pipeline import Pipeline
|
|
from sklearn.pipeline import Pipeline
|
|
from sklearn.model_selection import cross_validate as sklearn_cross_validation
|
|
from sklearn.model_selection import cross_validate as sklearn_cross_validation
|