Awọn ipilẹ Itọsọna

Awọn iṣẹ pipadanu

A loss defines the objective used to assess predictions or another training target.

Gbọ si itọsọna yiiAI-ṣe afihan · ~3 min

Lori iwe yi3 min ka
  1. Akopọ
  2. Jin Dive
  3. Real-World imuse
  4. Ojo iwaju ti Awọn iṣẹ Isonu
  5. Fifi o sinu iwa
  6. Tesiwaju Ṣiṣawari
  7. Awọn ibeere ti a beere nigbagbogbo

Akopọ

Individual loss values are often combined into a scalar for optimization, and the chosen objective is a proxy that may differ from the application's evaluation metric.

Jin Dive

A prediction loss compares outputs with training targets according to a specified rule. Those targets can be labels or values constructed for the learning task; they should not automatically be called unquestionable truth. Implementations may produce per-example losses and then sum or average them for an optimization step. Choosing the rule matters. Mean squared error averages squared residuals, giving large residuals more influence than mean absolute error, which averages their absolute values. For residuals one and three, mean squared error is five, while mean absolute error is two. These are illustrative calculations rather than performance results from a dataset. Classification commonly uses cross-entropy. With a one-hot target and a predicted probability p for its class, the loss is minus log p. A lower probability for the target class gives a larger loss, so confident wrong predictions can incur high loss. The logarithm base determines the units: base-two loss is in bits, while a natural logarithm gives nats. For a target probability of one-quarter, minus log-base-two p is two bits. Gradient-based optimization needs usable derivative information, but differentiability requirements should not be generalized to every learning algorithm. Some losses have nondifferentiable points handled by an appropriate subgradient or surrogate. Accuracy is a discrete evaluation metric and is generally not directly useful as a gradient-training objective. A suitable training loss supplies an optimization signal; final task quality needs evaluation using the relevant metrics.

Real-World imuse

Lilo ipadanu agbelebu-entropy lati ṣe ikẹkọ ikasi àwúrúju imeeli kan ti o jẹ ijiya awọn aiṣedeede igboya

Yiyan tumọ si aṣiṣe pipe fun asọtẹlẹ idiyele-ile nitoribẹẹ awọn ile nla diẹ diẹ ko jẹ gaba lori ikẹkọ

Lilo ipadanu iyatọ ki awoṣe idanimọ oju kan fa awọn aworan ti eniyan kanna pọ

Imọ-ẹrọ adanu-awoṣe ere lati darí chatbot si ọna iranlọwọ diẹ sii ati awọn idahun ododo

Ojo iwaju ti Awọn iṣẹ Isonu

Objective design can combine prediction terms, regularization, and other task requirements. Comparisons should state the target definition, formula, reduction, units, and evaluation metric. An objective can decrease while an application metric remains unchanged or worsens, so improvement should be measured rather than inferred from training loss alone. Custom losses need examination of the behavior they encourage as well as their numerical and optimization properties.

Fifi o sinu iwa

Kini idi ti o ṣe pataki

  • Awọn ipinnu diẹ sii. O ṣe iranlọwọ fun ọ lati ya sọtọ awọn iṣeduro imọ-ẹrọ lati ede tita.
  • Iye owo ati isuna. O le beere awọn ibeere imuse to dara julọ ṣaaju lilo owo tabi akoko.
  • Ẹgbẹ ati ṣiṣan iṣẹ. Awọn ẹgbẹ pẹlu oye pinpin ṣe ọja to dara julọ, eto imulo, ati awọn ipinnu ikẹkọ.

Ṣọra fun

  • Awọn ẹgbẹ oriṣiriṣi le lo ọrọ kanna ni oriṣiriṣi, nitorinaa ṣalaye iwọn ni kutukutu.
  • Awọn aṣepari le wo lagbara lakoko ti iṣẹ-aye gidi ko ṣe deede.
  • Aibikita didara data ati awọn ero igbelewọn nigbagbogbo ṣẹda awọn abajade ẹlẹgẹ.

Next awọn igbesẹ

  1. Bẹrẹ pẹlu itumọ-ede itele ti abajade ti o nilo.
  2. Mu metiriki aṣeyọri kan ati ipo ikuna kan ṣaaju idanwo.
  3. Ṣiṣe awakọ kekere kan pẹlu data aṣoju, kii ṣe eto demo didan.
  4. Iwe-ipamọ nibiti Awọn iṣẹ Ipadanu ṣe iranlọwọ ati nibiti awọn ọna ti o rọrun dara julọ.

Tesiwaju Ṣiṣawari

Ìwé ìròyìn ọfẹ

Gba ìkànìyàn AI ojoojúmọ́

Ìtàn AI mẹta tó jẹ́rìí ní gbogbo owurọ́ ọjọ́ iṣẹ́, kọ́wé ní Gẹ̀ẹ́sì tó rọrùn. Ọfẹ́ fún gbogbo àkókò, kò sí ìpolówó.

Ìmeèlì kan ní gbogbo ọjọ́ iṣẹ́. Yọkúrò ní ìkànìyàn ní ìkànìyàn kan. A kò ta tàbí pín àdírẹ́sì rẹ.

Ṣe idanwo fun ara rẹ

Take the Loss Functions quiz

Ìdáhùn lẹ́sẹ̀kẹsẹ̀ lórí gbogbo ìdáhùn, àti iwe-ẹ̀rí tó lè pin pẹ̀lú ID tó lè jẹ́rìí lẹ́yìn tí o bá kọ́ ẹ̀kọ́.

Bẹrẹ adanwo

Ṣe àtìlẹ́yìn ẹ̀kọ́ AI ọfẹ́. AI Understanding jẹ́ àjọ àìní èrè 501(c)(3) — kò sí ìpolówó, kò sí àkúnya owó, ní gbogbo àkókò. Ṣe ẹbun kan

Awọn ibeere ti a beere nigbagbogbo

Kini awọn iṣẹ pipadanu?

A loss defines the objective used to assess predictions or another training target. Individual loss values are often combined into a scalar for optimization, and the chosen objective is a proxy that may differ from the application's evaluation metric.

For a prediction task, what does its selected loss quantify against the training target?

A loss defines a training objective; it does not automatically measure every aspect of application quality.

Iṣẹ ipadanu wo ni a lo julọ fun awọn iṣẹ ṣiṣe isọdi?

Cross-entropy ṣe afiwe awọn ipinpinpin iṣeeṣe asọtẹlẹ si awọn aami otitọ ati pe o jẹ yiyan boṣewa fun isọdi.

Ti a ṣe afiwe si tumọ si aṣiṣe onigun mẹrin, kilode ti o le yan tumọ si aṣiṣe pipe?

Itumọ aṣiṣe pipe ṣe itọju gbogbo awọn aṣiṣe ni iwọn dipo ki o yi wọn squaring, nitorinaa diẹ ninu awọn ti o jade ni iwọn diẹ ni ipa diẹ.

Why does gradient-based training need a usable loss derivative or suitable substitute?

This concerns gradient-based training, not a claim that every possible learning algorithm requires a differentiable loss.

How does one-hot class cross-entropy change as probability assigned to the target class becomes very small?

The term minus log p grows as the target-class probability shrinks. This does not guarantee a particular gradient magnitude for every model weight.