Metraipolis › archive › dc_e020f5b46d81
Loss functions for classification — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Loss_functions_for_classification
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-31T09:55:47.092Z
- SHA-256 of the archived text
0a8416f0198df70196dceb7eaf63f196088bc9654c0a0a099cecfd4bf6c52b3e- Stable URL of this page
https://metraipolis.com/documento/dc_e020f5b46d81
How to cite
Loss functions for classification — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Loss_functions_for_classification (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_e020f5b46d81 (Metraipolis archive dc_e020f5b46d81, sha256 0a8416f0198df70196dceb7eaf63f196088bc9654c0a0a099cecfd4bf6c52b3e)
BibTeX
@misc{dce020f5b46d81,
title = {Loss functions for classification — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Loss_functions_for_classification},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_e020f5b46d81; sha256 0a8416f0198df70196dceb7eaf63f196088bc9654c0a0a099cecfd4bf6c52b3e},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Loss_functions_for_classification. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
In machine learning and mathematical optimization, loss functions for classification are computationally feasible loss functions representing the price paid for inaccuracy of predictions in classification problems (problems of identifying which category a particular observation belongs to). Given X {\displaystyle {\mathcal {X}}} as the space of all possible inputs (usually X ⊂ R d {\displaystyle {\mathcal {X}}\subset \mathbb {R} ^{d}} ), and Y = { − 1 , 1 } {\displaystyle {\mathcal {Y}}=\{-1,1\}} as the set of labels (possible outputs), a typical goal of classification algorithms is to find a function f : X → Y {\displaystyle f:{\mathcal {X}}\to {\mathcal {Y}}} which best predicts a label y {\displaystyle y} for a given input x → {\displaystyle {\vec {x}}} . However, because of incomplete information, noise in the measurement, or probabilistic components in the underlying process, it is possible for the same x → {\displaystyle {\vec {x}}} to generate different y {\displaystyle y} . As a result, the goal of the learning problem is to minimize expected loss (also known as the risk), defined as I [ f ] = ∫ X × Y V ( f ( x → ) , y ) p ( x → , y ) d x → d y {\displaystyle I[f]=\displaystyle \int _{{\mathcal {X}}\times {\mathcal {Y}}}V(f({\vec {x}}),y)\,p({\vec {x}},y)\,d{\vec {x}}\,dy} where V ( f ( x → ) , y ) {\displaystyle V(f({\vec {x}}),y)} is a given loss function, and p ( x → , y ) {\displaystyle p({\vec {x}},y)} is the probability density function of the process that generated the data, which can equivalently be written as p ( x → , y ) = p ( y ∣ x → ) p ( x → ) . {\displaystyle p({\vec {x}},y)=p(y\mid {\vec {x}})p({\vec {x}}).} Within classification, several commonly used loss functions are written solely in terms of the product of the true label y {\displaystyle y} and the predicted label f ( x → ) {\displaystyle f({\vec {x}})} . Therefore, they can be defined as functions of only one variable υ = y f ( x → ) {\displaystyle \upsilon =yf({\vec {x}})} , so that V ( f ( x → ) , y ) = ϕ ( y f ( x → ) ) = ϕ ( υ ) {\displaystyle V(f({\vec {x}}),y)=\phi (yf({\vec {x}}))=\phi (\upsilon )} with a suitably chosen function ϕ : R → R {\displaystyle \phi :\mathbb {R} \to \mathbb {R} } . These are called margin-based loss functions. Choosing a margin-based loss function amounts to choosing ϕ {\displaystyle \phi } . Selection of a loss function within this framework impacts the optimal f ϕ ∗ {\displaystyle f_{\phi }^{*}} which minimizes the expected risk, see empirical risk minimization. In the case of binary classification, it is possible to simplify the calculation of expected risk from the integral specified above. Specifically, I [ f ] = ∫ X × Y V ( f ( x → ) , y ) p ( x → , y ) d x → d y = ∫ X ∫ Y ϕ ( y f ( x → ) ) p ( y ∣ x → ) p ( x → ) d y d x → = ∫ X [ ϕ ( f ( x → ) ) p ( 1 ∣ x → ) + ϕ ( − f ( x → ) ) p ( − 1 ∣ x → ) ] p ( x → ) d x → = ∫ X [ ϕ ( f ( x → ) ) p ( 1 ∣ x → ) + ϕ ( − f ( x → ) ) ( 1 − p ( 1 ∣ x → ) ) ] p ( x → ) d x → {\displaystyle {
Tema degli esploratori: matematica e informatica teorica (deposito sistematico; ricerca «mathematical optimization»).
Fonte: Wikipedia in inglese, voce «Loss functions for classification» — https://en.wikipedia.org/wiki/Loss_functions_for_classification
Wikidata Q25048582: «concept in machine learning» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q25048582
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Loss_functions_for_classification?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1332572996, consultata il 2026-10-31T09:40:54.181Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 137a0fcaf53b74ee82e319281c8ed0f09fb7f3c7130c6f437dfd4be61abdce89