summaryrefslogtreecommitdiff
path: root/lib/utils.py
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-02-12 10:51:42 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-02-12 10:51:42 +0100
commit486690f31dfe8da33fbd0711137844424d0321eb (patch)
tree5d392998eec345c0583b2fc796a995d655b5cb44 /lib/utils.py
parent152e8c6c99d1791d0dcd78c25d2a20a43f55247d (diff)
unfuck param_names / feature_names handling
Diffstat (limited to 'lib/utils.py')
-rw-r--r--lib/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.py b/lib/utils.py
index 989c830..d6cdfc5 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -315,8 +315,8 @@ def param_to_ndarray(
for i, paramset in distinct_values.items():
distinct_values[i] = sorted(paramset)
category_to_scalar[i] = dict()
- for j, param in enumerate(distinct_values[i]):
- category_to_scalar[i][param] = j
+ for j, param_value in enumerate(distinct_values[i]):
+ category_to_scalar[i][param_value] = j
ignore_index = dict()
for i in range(len(param_tuples[0])):