H

ハミング損失

Hamming Lossは、多ラベル分類タスクにおいて誤ったラベルの割合を測定します。

ハミング損失は、モデルの性能を評価するために使用される指標です。 機械学習 models, particularly in 多ラベル分類 tasks. It quantifies the number of incorrect labels predicted by a model compared to the true labels. The Hamming Loss is calculated as the average fraction of incorrect labels over all instances in the dataset.

ハミング損失を計算するには、一般的に次のステップに従います。

  1. 各インスタンスについて、予測されたラベルと真のラベルを比較します。
  2. 誤って予測されたラベルの数を数えます。
  3. これらのカウントをすべてのインスタンスにわたって合計します。
  4. 誤った予測の総数を、すべてのインスタンスのラベルの総数で割ります。

The resulting value will range from 0 to 1, where 0 indicates perfect predictions (no incorrect labels) and 1 indicates that all predictions are incorrect. It is particularly useful in scenarios where multiple labels can apply to a single instance, such as image タギングやテキスト分類。

ハミング損失は、直感的な理解を提供するために有利です。 モデルのパフォーマンス in multi-label settings, allowing for direct comparisons between models. However, it may not account for the varying importance of different labels, which could be a consideration in some applications.

コントロール + /