diff options
Diffstat (limited to 'lib/cli.py')
-rw-r--r-- | lib/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -576,7 +576,7 @@ def add_standard_arguments(parser): ) parser.add_argument( "--param-shift", - metavar="<key>=<+|-|*|/><value>|none-to-0|categorial;...", + metavar="<key>=<+|-|*|/><value>|none-to-0|categorical;...", type=str, help="Adjust parameter values before passing them to model generation", ) @@ -695,7 +695,7 @@ def parse_shift_function(param_name, param_shift): elif param_shift.startswith("/"): param_shift_value = float(param_shift[1:]) return lambda p: p / param_shift_value - elif param_shift == "categorial": + elif param_shift == "categorical": return lambda p: "=" + str(p) elif param_shift == "none-to-0": return lambda p: p or 0 |