New answers tagged


One option is one-hot encode the categorical features. Then increment the value of the feature to act as a counter for the number occurrences. For example - if you are modeling a shopping cart, one feature would be "apples" and there would a count for the number of apples in the cart.

Top 50 recent answers are included