Skip to content
Snippets Groups Projects
Commit ef664d06 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed documented step keywords in grid_search; added check for steps

parent ce6e085d
No related branches found
No related tags found
No related merge requests found
...@@ -264,6 +264,9 @@ def check_requirements(replacements): ...@@ -264,6 +264,9 @@ def check_requirements(replacements):
global configuration global configuration
values = {} values = {}
for key in configuration.replace: for key in configuration.replace:
# check that the key is one of the known steps
if key not in steps:
raise ValueError("The step '%s' defined in the configuration file is unknown; choose one of %s" % (key, steps))
values.update(extract_values(configuration.replace[key], replacements)) values.update(extract_values(configuration.replace[key], replacements))
for requirement in configuration.requirements: for requirement in configuration.requirements:
test = replace(requirement, values) test = replace(requirement, values)
......
...@@ -74,7 +74,7 @@ The variables 1. to 3. can also be overridden by the command line options ``--pr ...@@ -74,7 +74,7 @@ The variables 1. to 3. can also be overridden by the command line options ``--pr
The ``replace`` variable has to be set as a dictionary. The ``replace`` variable has to be set as a dictionary.
In it, you can define with which values your place holder key should be filled, and in which step of the tool chain execution this should happen. In it, you can define with which values your place holder key should be filled, and in which step of the tool chain execution this should happen.
The steps are ``'preprocessing'``, ``'extraction'``, ``'projection'``, ``'enrollment'`` and ``'scoring'``. The steps are ``'preprocess'``, ``'extract'``, ``'project'``, ``'enroll'`` and ``'score'``.
For each of the steps, it can be defined, which placeholder should be replaced by which values. For each of the steps, it can be defined, which placeholder should be replaced by which values.
To be able to differentiate the results later on, each of the replacement values is bound to a directory name. To be able to differentiate the results later on, each of the replacement values is bound to a directory name.
The final structure looks somewhat like that: The final structure looks somewhat like that:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment