The document discusses the selection of output units and cost functions in deep neural networks, emphasizing criteria for classification and regression tasks. It evaluates two predominant cost functions: mean square error and cross entropy, comparing their analyticity and learning ability. The document further extends the discussion to multinoulli classification, detailing the cost function derivation and properties necessary for efficient learning and function stability.