summaryrefslogtreecommitdiff
path: root/lib/cli.py
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-02-19 10:32:39 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-02-19 10:32:39 +0100
commitcdf3f2ffe49d9836be74e60a83365d26f378fc88 (patch)
treef67b8e1f35ebdd4edf67402f6bf0bfe0eda6be32 /lib/cli.py
parent01ddab4bc7cff2c06b67e6327c848baa8141ed5c (diff)
categorial → categorical
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