Classification is the activity of assigning objects to some pre-existing classes or categories. This is distinct from the task of establishing the classes themselves. Examples include diagnostic tests, identifying spam emails and deciding whether to give someone a driving license.