Skip to content

Commit a8c0ffa

Browse files
authored
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>
1 parent 4c3a083 commit a8c0ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dowhy/gcm/model_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def evaluate_node(node_name, random_seed):
454454
)
455455

456456
conditional_expectations = _estimate_conditional_expectations(
457-
tmp_causal_mechanism, parent_data[test_indices], is_categorical, 50
457+
tmp_causal_mechanism, parent_data[test_indices], categorical, 50
458458
)
459459
if categorical:
460460
metric_evaluations["F1"].append(

0 commit comments

Comments
 (0)