summaryrefslogtreecommitdiff
path: root/lib/functions.py
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-01-14 16:27:40 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2022-01-14 16:27:40 +0100
commitd39f402184ede7702b2823c60cd0066f4b1db310 (patch)
treeeded49f6c7cb89d90848b8ff54772416e2e50157 /lib/functions.py
parent0f6b574fc77c5a45800e8d3afa9d281cda3c6093 (diff)
fix categorial-to-scalar handler for categorial values unseen during training
Diffstat (limited to 'lib/functions.py')
-rw-r--r--lib/functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/functions.py b/lib/functions.py
index af83146..9bbc0e7 100644
--- a/lib/functions.py
+++ b/lib/functions.py
@@ -451,7 +451,7 @@ class SKLearnRegressionFunction(ModelFunction):
# Note that all param values which were not part of training data map to the same scalar this way.
# This should be harmless.
actual_param_list.append(
- max(self.categorial_to_index[i][param]) + 1
+ max(self.categorial_to_index[i].values()) + 1
)
else:
actual_param_list.append(param)