<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Pytorch</anon>
  </categories>
  <description>はじめに 交差エントロピー(nn.CrossEntropy)の計算式 計算例 プログラムで求める nn. CrossEntropyを使う場合 自作した場合 はじめに 以下の公式ドキュメントを読みながら本記事を書きました。 ある程度理解したつもりですが、間違っていたらすみません。 pytorch.org 交差エントロピー(nn.CrossEntropy)の計算式 考えやすくするため、本記事では重みづけは行っていません。 そのため、参考サイトの文字を一部変更して、 N : サンプル数 n : サンプル番号(1~N) C : クラス数 : nサンプル目の正解ラベル番号 ： nサンプル目のラベルiのロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Ftorch-CrossEntropy&quot; title=&quot;交差エントロピーの計算(nn.CrossEntropy)を調べてみた - ランドML&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/r/round-rand/20241123/20241123144516.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-11-25 00:00:00</published>
  <title>交差エントロピーの計算(nn.CrossEntropy)を調べてみた</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/torch-CrossEntropy</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
