Skip to content

Commit

Permalink
Fix issue #1254: pass the variable 'categorical' instead of the metho…
Browse files Browse the repository at this point in the history
…d '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 <[email protected]>
  • Loading branch information
Yangliu-SY authored and bloebp committed Oct 3, 2024
1 parent a2f6d04 commit 2f35b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dowhy/gcm/model_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def evaluate_node(node_name, random_seed):
)

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(
Expand Down

0 comments on commit 2f35b62

Please sign in to comment.