add --hyperopt-path option

This commit is contained in:
hroff-1902
2019-07-22 19:37:34 +03:00
parent 41f24898e5
commit 04382d4b44
4 changed files with 18 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ class HyperOptResolver(IResolver):
if extra_dir:
# Add extra hyperopt directory on top of search paths
abs_paths.insert(0, Path(extra_dir))
abs_paths.insert(0, Path(extra_dir).resolve())
hyperopt = self._load_object(paths=abs_paths, object_type=IHyperOpt,
object_name=hyperopt_name)
@@ -115,7 +115,7 @@ class HyperOptLossResolver(IResolver):
if extra_dir:
# Add extra hyperopt directory on top of search paths
abs_paths.insert(0, Path(extra_dir))
abs_paths.insert(0, Path(extra_dir).resolve())
hyperoptloss = self._load_object(paths=abs_paths, object_type=IHyperOptLoss,
object_name=hyper_loss_name)