Skip to content

Commit

Permalink
Update nvtabular/ops/categorify.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Jul 14, 2021
1 parent e6536dc commit 4902361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvtabular/ops/categorify.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ def __init__(
# Only support two kinds of multi-column encoding
if encode_type not in ("joint", "combo"):
raise ValueError(f"encode_type={encode_type} not supported.")
if encode_type == "joint" and vocabs is not None:
raise ValueError("Passing in vocabs is not supported with a joint encoding.")
if encode_type == "combo" and vocabs is not None:
raise ValueError("Passing in vocabs is not supported with a combo encoding.")

# Other self-explanatory initialization
super().__init__()
Expand Down

0 comments on commit 4902361

Please sign in to comment.