1. Device for generating a classifier for automatically sorting objects, which are respectively characterized by electronic attributes, in particular a classifier for automatically sorting manufactured products into up-to-standard products and defective products, having a storage device for storing a set of electronic training data, which comprises a respective electronic attribute set for training objects, and having a processor device for processing the electronic training data, a dimension (d) being determined by the number of attributes in the respective electronic attribute set, characterized in that the processor device has discretization means for automatically discretizing a function space (V), which is defined over the real numbers (h l &equals;2 l t ), into subspaces (V N, N&equals;2, 3,...) by means of a sparse grid technique and processing the electronic training data with the aid of a processor device.