diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-19 10:32:39 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2024-02-19 10:32:39 +0100 |
commit | cdf3f2ffe49d9836be74e60a83365d26f378fc88 (patch) | |
tree | f67b8e1f35ebdd4edf67402f6bf0bfe0eda6be32 /lib/cli.py | |
parent | 01ddab4bc7cff2c06b67e6327c848baa8141ed5c (diff) |
categorial → categorical
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 |