|
@@ -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.
|
|
|
Children classes: hyperopt and custom gridsearch.
|
|
|
"""
|
|
|
+from __future__ import annotations
|
|
|
|
|
|
import pickle
|
|
|
import os
|
|
@@ -34,7 +35,7 @@ if (sys.version_info.major == 3) & (sys.version_info.minor >= 8):
|
|
|
else:
|
|
|
# from typing_extensions import *
|
|
|
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
|
|
|
List = list
|
|
|
from typing_extensions import Callable, TypedDict,\
|