Construct a Crossed Column
Returns a column for performing crosses of categorical features. Crossed
features will be hashed according to hash_bucket_size
.
column_crossed(keys, hash_bucket_size, hash_key = NULL)
keys |
An iterable identifying the features to be crossed. Each element can be either:
|
hash_bucket_size |
The number of buckets (> 1). |
hash_key |
Optional: specify the hash_key that will be used by the
|
A crossed column.
ValueError: If len(keys) < 2
.
ValueError: If any of the keys is neither a string nor categorical column.
ValueError: If any of the keys is _HashedCategoricalColumn
.
ValueError: If hash_bucket_size < 1
.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.