|
@@ -16,6 +16,7 @@ Created on Wed Sep 30 14:23:23 2020
|
|
save the current best result in a file or database during training.
|
|
save the current best result in a file or database during training.
|
|
Children classes: hyperopt and custom gridsearch.
|
|
Children classes: hyperopt and custom gridsearch.
|
|
"""
|
|
"""
|
|
|
|
+from __future__ import annotations
|
|
|
|
|
|
import pickle
|
|
import pickle
|
|
import os
|
|
import os
|
|
@@ -34,7 +35,7 @@ if (sys.version_info.major == 3) & (sys.version_info.minor >= 8):
|
|
else:
|
|
else:
|
|
# from typing_extensions import *
|
|
# from typing_extensions import *
|
|
print("I have python version {}.{} and will import typing_extensions".format(sys.version_info.major, sys.version_info.minor))
|
|
print("I have python version {}.{} and will import typing_extensions".format(sys.version_info.major, sys.version_info.minor))
|
|
- from __future__ import annotations
|
|
|
|
|
|
+
|
|
Dict = dict
|
|
Dict = dict
|
|
List = list
|
|
List = list
|
|
from typing_extensions import Callable, TypedDict,\
|
|
from typing_extensions import Callable, TypedDict,\
|