Cardinality in Categorical Data
A distinct count alone cannot choose an encoding. Learn how cardinality interacts with category frequency, statistical evidence and unseen values.
A distinct count alone cannot choose an encoding. Learn how cardinality interacts with category frequency, statistical evidence and unseen values.
A feature value is what one feature holds for one example. Models need numbers, so categories are encoded, numeric ranges are scaled, and missing values need an explicit rule.
60% against 56%, scaled from 1,000 rows to 100,000: chi-square goes 1.6420 to 164.2036 and p from 0.2000 to zero.