mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
use multiple jobs in acq
This commit is contained in:
parent
964cbdc262
commit
c415014153
|
@ -371,7 +371,7 @@ class Hyperopt(Backtesting):
|
||||||
cpus = multiprocessing.cpu_count()
|
cpus = multiprocessing.cpu_count()
|
||||||
print(f'Found {cpus}. Let\'s make them scream!')
|
print(f'Found {cpus}. Let\'s make them scream!')
|
||||||
|
|
||||||
opt = Optimizer(self.hyperopt_space(), base_estimator="ET", acq_optimizer="auto", n_initial_points=30)
|
opt = Optimizer(self.hyperopt_space(), base_estimator="ET", acq_optimizer="auto", n_initial_points=30, acq_optimizer_kwargs={'n_jobs': -1})
|
||||||
|
|
||||||
with Parallel(n_jobs=-1) as parallel:
|
with Parallel(n_jobs=-1) as parallel:
|
||||||
for i in range(self.total_tries//cpus):
|
for i in range(self.total_tries//cpus):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user