add mongodb support for hyperopt parallelization

This commit is contained in:
gcarq
2017-11-25 02:04:37 +01:00
parent 5bf583cba4
commit e27a6a7a91
6 changed files with 74 additions and 23 deletions

View File

@@ -167,6 +167,13 @@ def build_subcommands(parser: argparse.ArgumentParser) -> None:
type=int,
metavar='INT',
)
hyperopt_cmd.add_argument(
'--use-mongodb',
help='parallelize evaluations with mongodb (requires mongod in PATH)',
dest='mongodb',
action='store_true',
)
# Required json-schema for user specified config
CONF_SCHEMA = {