summaryrefslogtreecommitdiff
path: root/lib/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cli.py')
-rw-r--r--lib/cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cli.py b/lib/cli.py
index 3da6fce..f289d4a 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -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