Merge pull request #7363 from wagnercosta/fixHyperoptFreqai

Fix hyperopt - freqai
This commit is contained in:
Robert Caulk
2022-09-10 17:02:01 +02:00
committed by GitHub
4 changed files with 61 additions and 94 deletions

View File

@@ -92,6 +92,12 @@ class IFreqaiModel(ABC):
self._threads: List[threading.Thread] = []
self._stop_event = threading.Event()
def __getstate__(self):
"""
Return an empty state to be pickled in hyperopt
"""
return ({})
def assert_config(self, config: Dict[str, Any]) -> None:
if not config.get("freqai", {}):