Generalization is a model’s ability to reuse patterns learned from training data when making useful predictions for previously unseen inputs. Inputs outside the training and test sets are out of distribution; extrapolating to them is generalization. section 5.2.4 section 10.1
For names, character n-grams let a classifier use subword patterns rather than memorizing complete names. A TfidfVectorizer can fit on training names and transform unseen names into sparse feature vectors. section 5.2.4
Generalization is not guaranteed intelligence
An LLM may reuse language patterns convincingly without modeling the physical world. Prompting GPT-2 with “There are 2 cows and 2 bulls, how many legs are there?” produces varied answers, including “four,” “30,” and “one,” exposing brittle generalization and hallucination. section 10.1












