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:
Родитель
a2f6d04540
Коммит
2f35b62246
|
@ -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(
|
||||
|
|
Загрузка…
Ссылка в новой задаче