<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>atsuhiro-me</author_name>
  <author_url>https://blog.hatena.ne.jp/atsuhiro-me/</author_url>
  <blog_title>みーのぺーじ</blog_title>
  <blog_url>https://pc.atsuhiro-me.net/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>PyTorch</anon>
  </categories>
  <description>PyTorch で時系列データを学習させてみたかったので，このサンプルを参考に，long short-term memory (LSTM) cell を使った，Recurrent neural network を作成し，ある区間の sin 関数を学習させて，その続きを予測させてみました． sin 関数は，振幅と周波数と位相の3個のパラメータがありますが，参考にしたサンプルは位相のみを変化させた学習データを用いていました．もう少し凝った学習ができるのか興味があったので，振幅も変化させることにしました． 教師データの作成 import numpy as np import torch np.ran…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2023%2F09%2F24%2F165318&quot; title=&quot;PyTorch で三角関数を学習する - みーのぺーじ&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/a/atsuhiro-me/20230924/20230924163743.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-24 16:53:18</published>
  <title>PyTorch で三角関数を学習する</title>
  <type>rich</type>
  <url>https://pc.atsuhiro-me.net/entry/2023/09/24/165318</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
