<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hirotaka_hachiya</author_name>
  <author_url>https://blog.hatena.ne.jp/hirotaka_hachiya/</author_url>
  <blog_title>八谷大岳の覚え書きブログ</blog_title>
  <blog_url>https://hirotaka-hachiya.hatenablog.com/</blog_url>
  <categories>
    <anon>Pythonによる機械学習</anon>
    <anon>ディープラーニング</anon>
    <anon>データ解析</anon>
  </categories>
  <description>以下では、tensorflowのバージョン2.1を前提にSequential、FunctionalおよびSubclassing APIを用いた実装方法についておおざっぱにまとめた。 hirotaka-hachiya.hatenablog.com tensorflow 2.1のSubclassing APIでは、自由度が高い分学習まわりでfor文でepochを回すなどコードが煩雑になり一貫性の無いところが残念だった。 しかし、以下のtensorflow 2.2以上ではtf.keras.Modelのtrain_stepのオーバーライドが許可され、損失を複数設定し同時に最適化するなどの自作の学習に対…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhirotaka-hachiya.hatenablog.com%2Fentry%2F2020%2F09%2F06%2F023216&quot; title=&quot;train_stepのオーバーライドによるsubclassingの簡単化 - 八谷大岳の覚え書きブログ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-06 02:32:16</published>
  <title>train_stepのオーバーライドによるsubclassingの簡単化</title>
  <type>rich</type>
  <url>https://hirotaka-hachiya.hatenablog.com/entry/2020/09/06/023216</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
