<?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>エラー解決</anon>
    <anon>keras</anon>
  </categories>
  <description>警告の発生状況 kerasを使って、 model = keras.Sequential([ keras.layers.Dense(16, activation = 'relu', input_shape=[4]), # 以下省略 ]) というコードを実行したところ、 UserWarning: Do not pass an `input_shape`/`input_dim` argument to a layer. When using Sequential models, prefer using an `Input(shape)` object as the first layer in t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Ferror-keras-input_shape_argument&quot; title=&quot;Do not pass an `input_shape`/`input_dim` argument~の解決策 - ランド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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-17 00:00:00</published>
  <title>Do not pass an `input_shape`/`input_dim` argument~の解決策</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/error-keras-input_shape_argument</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
