Fix issue #1254: pass the variable 'categorical' instead of the method 'is_categorical'

Based on the context of the codes, the variable 'categorical' should be passed in the function call of '_estimate_conditional_expectations' instead of the method 'is_categorical'

Signed-off-by: Yangliu-SY <144334404+Yangliu-SY@users.noreply.github.com>
This commit is contained in:
Yangliu-SY 2024-10-01 17:46:12 +02:00 коммит произвёл Patrick Blöbaum
Родитель a2f6d04540
Коммит 2f35b62246
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -454,7 +454,7 @@ def _evaluate_model_performances(
)
conditional_expectations = _estimate_conditional_expectations(
tmp_causal_mechanism, parent_data[test_indices], is_categorical, 50
tmp_causal_mechanism, parent_data[test_indices], categorical, 50
)
if categorical:
metric_evaluations["F1"].append(