<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja-JP"><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://tofumasume.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://tofumasume.github.io/" rel="alternate" type="text/html" hreflang="ja-JP" /><updated>2026-08-02T07:29:31+00:00</updated><id>https://tofumasume.github.io/feed.xml</id><title type="html">Tofu Masume Blog</title><subtitle>個人的なメモとか色々</subtitle><entry><title type="html">OGP対応したよ</title><link href="https://tofumasume.github.io/etc/update/2026/08/02/ogp-taiou.html" rel="alternate" type="text/html" title="OGP対応したよ" /><published>2026-08-02T03:00:00+00:00</published><updated>2026-08-02T03:00:00+00:00</updated><id>https://tofumasume.github.io/etc/update/2026/08/02/ogp-taiou</id><content type="html" xml:base="https://tofumasume.github.io/etc/update/2026/08/02/ogp-taiou.html"><![CDATA[<p>こっちの方がかっこいいね</p>]]></content><author><name></name></author><category term="etc" /><category term="update" /><summary type="html"><![CDATA[こっちの方がかっこいいね]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://tofumasume.github.io/assets/images/ogp/posts/ogp-taiou.png" /><media:content medium="image" url="https://tofumasume.github.io/assets/images/ogp/posts/ogp-taiou.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">ベクトル埋め込みってなんやねん Vol.1</title><link href="https://tofumasume.github.io/%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92/2026/07/29/vector-embed.html" rel="alternate" type="text/html" title="ベクトル埋め込みってなんやねん Vol.1" /><published>2026-07-29T14:00:00+00:00</published><updated>2026-07-29T14:00:00+00:00</updated><id>https://tofumasume.github.io/%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92/2026/07/29/vector-embed</id><content type="html" xml:base="https://tofumasume.github.io/%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92/2026/07/29/vector-embed.html"><![CDATA[<h2 id="単語をコンピュータに理解させる">単語をコンピュータに理解させる</h2>

<p>以下の4単語をコンピュータに理解させたい。</p>

\[\text{猫} \quad \text{犬} \quad \text{寝る} \quad \text{食べる}\]

<p>そのままコンピュータに突っ込めば、unicodeから対応したコードポイントを拾ってきて、utf-8で符号に変換され…みたいな処理が走って、最終的に0と1の羅列になる。
”理解”という言葉の定義が曖昧だったが、ここでは単語そのものと単語に紐づいた意味をコンピュータに処理させる、という定義にしたい。
そのまま突っ込んだところで、コンピュータは単語を理解できただろうか。</p>]]></content><author><name></name></author><category term="機械学習" /><summary type="html"><![CDATA[単語をコンピュータに理解させる]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://tofumasume.github.io/assets/images/ogp/posts/vector-embed.png" /><media:content medium="image" url="https://tofumasume.github.io/assets/images/ogp/posts/vector-embed.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">tex表示</title><link href="https://tofumasume.github.io/etc/2026/07/29/tex.html" rel="alternate" type="text/html" title="tex表示" /><published>2026-07-29T13:13:00+00:00</published><updated>2026-07-29T13:13:00+00:00</updated><id>https://tofumasume.github.io/etc/2026/07/29/tex</id><content type="html" xml:base="https://tofumasume.github.io/etc/2026/07/29/tex.html"><![CDATA[<p>tex表示できるようにした</p>

\[E = mc^2\]

<p>いいね</p>

<h2 id="技術概要とか">技術概要とか</h2>

<p>以下AIくんにどうやったか書いてもらった。</p>

<p>Jekyll と Minima テーマの標準状態では、Markdown に TeX を書いても数式としては表示されない。そのため、ブラウザ側で数式を描画してくれる <strong>MathJax</strong> を追加した。</p>

<p>具体的には、Minima テーマの <code class="language-plaintext highlighter-rouge">head.html</code> をプロジェクト側の <code class="language-plaintext highlighter-rouge">_includes/head.html</code> として上書きし、<code class="language-plaintext highlighter-rouge">&lt;head&gt;</code> の中で MathJax を読み込むようにした。</p>

<div class="language-html highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;script&gt;</span>
  <span class="nx">MathJax</span> <span class="o">=</span> <span class="p">{</span>
    <span class="na">tex</span><span class="p">:</span> <span class="p">{</span>
      <span class="na">inlineMath</span><span class="p">:</span> <span class="p">[[</span><span class="dl">'</span><span class="s1">$</span><span class="dl">'</span><span class="p">,</span> <span class="dl">'</span><span class="s1">$</span><span class="dl">'</span><span class="p">],</span> <span class="p">[</span><span class="dl">'</span><span class="se">\\</span><span class="s1">(</span><span class="dl">'</span><span class="p">,</span> <span class="dl">'</span><span class="se">\\</span><span class="s1">)</span><span class="dl">'</span><span class="p">]],</span>
      <span class="na">displayMath</span><span class="p">:</span> <span class="p">[[</span><span class="dl">'</span><span class="s1">$$</span><span class="dl">'</span><span class="p">,</span> <span class="dl">'</span><span class="s1">$$</span><span class="dl">'</span><span class="p">],</span> <span class="p">[</span><span class="dl">'</span><span class="se">\\</span><span class="s1">[</span><span class="dl">'</span><span class="p">,</span> <span class="dl">'</span><span class="se">\\</span><span class="s1">]</span><span class="dl">'</span><span class="p">]]</span>
    <span class="p">}</span>
  <span class="p">};</span>
<span class="nt">&lt;/script&gt;</span>
<span class="nt">&lt;script </span><span class="na">defer</span> <span class="na">src=</span><span class="s">"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"</span><span class="nt">&gt;&lt;/script&gt;</span>
</code></pre></div></div>

<p>これで記事中にインライン数式なら <code class="language-plaintext highlighter-rouge">$E = mc^2$</code>、別行立ての数式なら次のように書けるようになった。</p>

<div class="language-md highlighter-rouge"><div class="highlight"><pre class="highlight"><code>$$
<span class="se">\i</span>nt_0^1 x^2 <span class="se">\,</span> dx = <span class="se">\f</span>rac{1}{3}
$$
</code></pre></div></div>

<p>なお、<code class="language-plaintext highlighter-rouge">$</code> を普通のドル記号として表示したいときは、<code class="language-plaintext highlighter-rouge">\$</code> のようにエスケープする必要がある。</p>]]></content><author><name></name></author><category term="etc" /><summary type="html"><![CDATA[tex表示できるようにした]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://tofumasume.github.io/assets/images/ogp/posts/tex.png" /><media:content medium="image" url="https://tofumasume.github.io/assets/images/ogp/posts/tex.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">機械学習、画像から始めるのが多いのなんなんだ</title><link href="https://tofumasume.github.io/%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92/2026/07/27/gazo-ookune.html" rel="alternate" type="text/html" title="機械学習、画像から始めるのが多いのなんなんだ" /><published>2026-07-27T12:30:00+00:00</published><updated>2026-07-27T12:30:00+00:00</updated><id>https://tofumasume.github.io/%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92/2026/07/27/gazo-ookune</id><content type="html" xml:base="https://tofumasume.github.io/%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92/2026/07/27/gazo-ookune.html"><![CDATA[<p>音声だったりテキストだったりよりも、画像が学習のための前処理がやりやすいっていうのはあるっぽい。</p>

<p>機械学習で入力を扱う際、まず扱うものをコンピュータで解釈できるようにデータ化する必要がある（標本化だったり量子化だったり…）。
その上で、機械学習でモデルで扱うために、適切な変換を実施して有用な特徴量を構築していく。</p>

<p>画像だと、データ化と特徴量化の間に大きな差異はない。MNISTなんかだと元データから一次元のベクトルにしてモデルに突っ込んだりするが、正直それだけ。</p>

<p>テキストは本当にわからない、なんなんだお前は。(連続的なデータを扱うのが得意なモデルに無理やり離散的なデータ突っ込んでるので、そのためのテクニックが諸々ある感じ？)</p>]]></content><author><name></name></author><category term="機械学習" /><summary type="html"><![CDATA[音声だったりテキストだったりよりも、画像が学習のための前処理がやりやすいっていうのはあるっぽい。]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://tofumasume.github.io/assets/images/ogp/posts/gazo-ookune.png" /><media:content medium="image" url="https://tofumasume.github.io/assets/images/ogp/posts/gazo-ookune.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Hello World</title><link href="https://tofumasume.github.io/etc/2026/07/27/hello-world.html" rel="alternate" type="text/html" title="Hello World" /><published>2026-07-27T12:15:00+00:00</published><updated>2026-07-27T12:15:00+00:00</updated><id>https://tofumasume.github.io/etc/2026/07/27/hello-world</id><content type="html" xml:base="https://tofumasume.github.io/etc/2026/07/27/hello-world.html"><![CDATA[<p>Greetings!
色々アウトプットします。</p>]]></content><author><name></name></author><category term="etc" /><summary type="html"><![CDATA[Greetings! 色々アウトプットします。]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://tofumasume.github.io/assets/images/ogp/posts/hello-world.png" /><media:content medium="image" url="https://tofumasume.github.io/assets/images/ogp/posts/hello-world.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>