File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
freqtrade/optimize/hyperopt Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change 66
77import logging
88import random
9- import sys
109from datetime import datetime
1110from math import ceil
1211from multiprocessing import Manager
1514
1615import rapidjson
1716from joblib import Parallel , cpu_count , delayed , wrap_non_picklable_objects
18- from joblib .externals import cloudpickle
1917
2018from freqtrade .constants import FTHYPT_FILEVERSION , LAST_BT_RESULT_FN , Config
2119from freqtrade .enums import HyperoptState
@@ -110,17 +108,6 @@ def clean_hyperopt(self) -> None:
110108 logger .info (f"Removing `{ p } `." )
111109 p .unlink ()
112110
113- def hyperopt_pickle_magic (self , bases ) -> None :
114- """
115- Hyperopt magic to allow strategy inheritance across files.
116- For this to properly work, we need to register the module of the imported class
117- to pickle as value.
118- """
119- for modules in bases :
120- if modules .__name__ != "IStrategy" :
121- cloudpickle .register_pickle_by_value (sys .modules [modules .__module__ ])
122- self .hyperopt_pickle_magic (modules .__bases__ )
123-
124111 def _save_result (self , epoch : dict ) -> None :
125112 """
126113 Save hyperopt results to file
You can’t perform that action at this time.
0 commit comments