mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix pickling-error
This commit is contained in:
parent
7b62e71f23
commit
4f800bfbc8
|
@ -14,7 +14,7 @@ from operator import itemgetter
|
|||
from typing import Any, Dict, List
|
||||
|
||||
from pandas import DataFrame
|
||||
from sklearn.externals.joblib import Parallel, delayed, dump, load
|
||||
from joblib import Parallel, delayed, dump, load, wrap_non_picklable_objects
|
||||
from skopt import Optimizer
|
||||
from skopt.space import Dimension
|
||||
|
||||
|
@ -219,7 +219,7 @@ class Hyperopt(Backtesting):
|
|||
)
|
||||
|
||||
def run_optimizer_parallel(self, parallel, asked) -> List:
|
||||
return parallel(delayed(self.generate_optimizer)(v) for v in asked)
|
||||
return parallel(delayed(wrap_non_picklable_objects(self.generate_optimizer))(v) for v in asked)
|
||||
|
||||
def load_previous_results(self):
|
||||
""" read trials file if we have one """
|
||||
|
|
|
@ -8,6 +8,7 @@ urllib3==1.24.1
|
|||
wrapt==1.10.11
|
||||
pandas==0.23.4
|
||||
scikit-learn==0.20.0
|
||||
joblib==0.13.0
|
||||
scipy==1.1.0
|
||||
jsonschema==2.6.0
|
||||
numpy==1.15.4
|
||||
|
|
Loading…
Reference in New Issue
Block a user