Skip to content

Commit

Permalink
flip TermBoostFlags_MissingCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbkoch committed Jan 2, 2025
1 parent 5098d64 commit e19927a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions python/interpret-core/interpret/glassbox/_ebm/_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,14 @@ def boost(
)

if missing == "low":
term_boost_flags_local |= (
Native.TermBoostFlags_MissingLow
| Native.TermBoostFlags_MissingCategory
)
term_boost_flags_local |= Native.TermBoostFlags_MissingLow
elif missing == "high":
term_boost_flags_local |= (
Native.TermBoostFlags_MissingHigh
| Native.TermBoostFlags_MissingCategory
)
term_boost_flags_local |= Native.TermBoostFlags_MissingHigh
elif missing == "separate":
term_boost_flags_local |= (
Native.TermBoostFlags_MissingSeparate
| Native.TermBoostFlags_MissingCategory
)
elif missing != "gain":
term_boost_flags_local |= Native.TermBoostFlags_MissingSeparate
elif missing == "gain":
term_boost_flags_local |= Native.TermBoostFlags_MissingCategory
else:
msg = f"Unrecognized missing option {missing}."
raise Exception(msg)

Expand Down

0 comments on commit e19927a

Please sign in to comment.