diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2022-01-14 16:27:40 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2022-01-14 16:27:40 +0100 |
commit | d39f402184ede7702b2823c60cd0066f4b1db310 (patch) | |
tree | eded49f6c7cb89d90848b8ff54772416e2e50157 /lib/functions.py | |
parent | 0f6b574fc77c5a45800e8d3afa9d281cda3c6093 (diff) |
fix categorial-to-scalar handler for categorial values unseen during training
Diffstat (limited to 'lib/functions.py')
-rw-r--r-- | lib/functions.py | 2 |
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) |