Skip to content

Commit

Permalink
Update scoring.py
Browse files Browse the repository at this point in the history
Signed-off-by: AlxdrPolyakov <[email protected]>
  • Loading branch information
AlxdrPolyakov authored Aug 30, 2024
1 parent 73c46b5 commit d1d1416
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions causaltune/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ def policy_risk_score(
propensity_scores = (
self.psw_estimator.estimator.propensity_model.predict_proba(
df[['random'] + self.psw_estimator._effect_modifier_names]
)
)
if propensity_scores.ndim == 2:
# Use second column if 2D array
Expand Down

0 comments on commit d1d1416

Please sign in to comment.