Skip to content

How are multicategorical features processed? #442

Answered by akihironitta
davidfstein asked this question in Q&A
Discussion options

You must be logged in to vote

I'd suggest looking at the implementation and its test case as we have no docs around this yet:

class MultiCategoricalTensorMapper(TensorMapper):
r"""Maps any multi-categorical series into an index representation, with
:obj:`-1` denoting missing values (NaN) and no value denoting not belonging
to any categories. Unseen categories will be ignored.
Args:
categories (List[Any]): A list of possible categories in the
multi-categorical column sorted by counts.
sep (str, optional): The delimiter for the categories in each cell.
If :obj:`None`, it assumes each cell…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@akihironitta
Comment options

@davidfstein
Comment options

@akihironitta
Comment options

@davidfstein
Comment options

Answer selected by davidfstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants