Feature types
standardbeginnerA numerical feature is a measurable quantity, like age or price. A categorical feature is one of a fixed set of values, like a country code. A text feature is free-form language. A time-series feature captures how a value changes over time. An interaction feature combines two or more existing features into a new one.
Think of it as
Each feature type needs a different preparation step before a model can use it — a model that expects numbers cannot directly consume the string 'France'. Numerical features usually need scaling. Categorical features need encoding into numbers (§5.3). Text features need extraction — a word count, TF-IDF, or an embedding. Time-series features need windowing — a rolling average, a lag, a day-of-week flag — to turn a sequence of values into a fixed set of per-row features. Interaction features exist because a model that only sees individual features can miss relationships between them: 'price per square foot' carries information neither 'price' nor 'square footage' carries alone, and creating it explicitly can help a model that cannot easily learn the division itself.
Five feature types and their typical preparation step
Remember: Every feature type needs its own preparation step before a model sees it: numerical → scale, categorical → encode, text → extract, time-series → window, interaction → explicitly combine.
See also: scaling normalization and standardization · categorical encoding methods


