<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akanuma-hiroaki</author_name>
  <author_url>https://blog.hatena.ne.jp/akanuma-hiroaki/</author_url>
  <blog_title>Tech Blog by Akanuma Hiroaki</blog_title>
  <blog_url>https://blog.akanumahiroaki.com/</blog_url>
  <categories>
    <anon>AI</anon>
    <anon>DeepLearning</anon>
    <anon>Ruby</anon>
    <anon>Python</anon>
    <anon>機械学習</anon>
  </categories>
  <description>今回は「ゼロから作るDeepLearning」で紹介されている各種パラメータ最適化手法を、書籍のPythonのサンプルコードをベースに、Rubyで実装してみました。 www.oreilly.co.jp 各手法のロジックについては書籍で説明されていますので割愛します。また、前回の記事で書いたように、Rubyでは値の受け渡しが参照の値渡しになるので、パラメータのハッシュの各値は配列として保持する前提です。 SGD（確率的勾配降下法） SGDは前回の記事でもすでに使っていたのと同じで、別クラスとして分けただけのものです。 class SGD def initialize(lr: 0.01) @lr …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.akanumahiroaki.com%2Fentry%2F2017%2F04%2F21%2F090000&quot; title=&quot;各種パラメータ最適化手法の実装（SGD, Momentum, AdaGrad, Adam） - Tech Blog by Akanuma Hiroaki&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/akanuma-hiroaki/20170421/20170421083501.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-04-21 09:00:00</published>
  <title>各種パラメータ最適化手法の実装（SGD, Momentum, AdaGrad, Adam）</title>
  <type>rich</type>
  <url>https://blog.akanumahiroaki.com/entry/2017/04/21/090000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
