make --refresh-pairs-cached common option for optimization; added support for it into hyperopt

This commit is contained in:
hroff-1902
2019-04-22 21:24:45 +03:00
parent d3e956f7cc
commit ad85ac3dde
8 changed files with 205 additions and 74 deletions

View File

@@ -324,6 +324,11 @@ class Configuration(object):
config.update({'print_all': self.args.print_all})
logger.info('Parameter --print-all detected: %s', config.get('print_all'))
# If -r/--refresh-pairs-cached is used we add it to the configuration
if 'refresh_pairs' in self.args and self.args.refresh_pairs:
config.update({'refresh_pairs': True})
logger.info('Parameter -r/--refresh-pairs-cached detected ...')
return config
def _validate_config_schema(self, conf: Dict[str, Any]) -> Dict[str, Any]: