Added logging if argument is miss-configured

This commit is contained in:
Fredrik81 2020-03-02 22:58:54 +01:00
parent 7713cfeb79
commit 0e4862b0c8

View File

@ -561,6 +561,7 @@ class Hyperopt:
if (config_jobs < 0 and (cpus + config_jobs + 1) > self.total_epochs) \ if (config_jobs < 0 and (cpus + config_jobs + 1) > self.total_epochs) \
or (config_jobs > 0 and config_jobs > self.total_epochs): or (config_jobs > 0 and config_jobs > self.total_epochs):
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}') logger.info(f'Number of parallel jobs set as: {config_jobs}')
self.dimensions: List[Dimension] = self.hyperopt_space() self.dimensions: List[Dimension] = self.hyperopt_space()