mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix config_jobs
This commit is contained in:
parent
0e4862b0c8
commit
92425642da
|
@ -558,10 +558,6 @@ class Hyperopt:
|
|||
cpus = cpu_count()
|
||||
logger.info(f"Found {cpus} CPU cores. Let's make them scream!")
|
||||
config_jobs = self.config.get('hyperopt_jobs', -1)
|
||||
if (config_jobs < 0 and (cpus + config_jobs + 1) > self.total_epochs) \
|
||||
or (config_jobs > 0 and config_jobs > self.total_epochs):
|
||||
config_jobs = self.total_epochs
|
||||
logger.info("Job count invalid will correct")
|
||||
logger.info(f'Number of parallel jobs set as: {config_jobs}')
|
||||
|
||||
self.dimensions: List[Dimension] = self.hyperopt_space()
|
||||
|
|
Loading…
Reference in New Issue
Block a user