{
  "id": 324842,
  "title": "No idea what's wrong with my code. Help.",
  "url": "/competitions/birdclef-2022/discussion/324842",
  "author_name": "",
  "post_date": "2022-05-13T15:25:30.912348700Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I am new to machine learning and here is my stackoverflow question link. I think it has every context.<br>\nSomeone help me please.</p>\n<p><a href=\"url\" target=\"_blank\">https://stackoverflow.com/questions/72230205/valueerror-when-fitting-my-model-valueerror-could-not-broadcast-input-array-f</a></p>",
  "messages": [
    {
      "id": "1787113",
      "postDate": "05/13/2022 15:25:30",
      "content": "<p>I am new to machine learning and here is my stackoverflow question link. I think it has every context.<br>\nSomeone help me please.</p>\n<p><a href=\"url\" target=\"_blank\">https://stackoverflow.com/questions/72230205/valueerror-when-fitting-my-model-valueerror-could-not-broadcast-input-array-f</a></p>",
      "rawMarkdown": "I am new to machine learning and here is my stackoverflow question link. I think it has every context.\nSomeone help me please.\n\n[https://stackoverflow.com/questions/72230205/valueerror-when-fitting-my-model-valueerror-could-not-broadcast-input-array-f](url)",
      "votes": null
    },
    {
      "id": "1791408",
      "postDate": "05/16/2022 02:06:13",
      "content": "<p>I am not familiar with ImageDataGenerator, but  <br>\n<code>IM_SIZE = (224, 224, 3)</code> can cause a problem, How about setting <code>target_size = (224, 224)</code></p>\n<p>By the way, I think it can cause private sharing, so I suggest you discuss it in the Kaggle environment.</p>",
      "rawMarkdown": "I am not familiar with ImageDataGenerator, but  \n`IM_SIZE = (224, 224, 3)` can cause a problem, How about setting `target_size = (224, 224)`\n\nBy the way, I think it can cause private sharing, so I suggest you discuss it in the Kaggle environment.",
      "votes": null
    },
    {
      "id": "1792516",
      "postDate": "05/17/2022 03:22:15",
      "content": "<p>I think it's not possible to reshape (224,224,3) into shape (224,224,3,3). <br>\nBecause you have 24<em>24</em>3 pixels on left and 224<em>224</em>3*3 on right. This is vague I believe.</p>\n<p>import numpy as np<br>\na = np.random.rand(2,2,3)</p>\n<p>Below will give error: <br>\na = a.reshape(2,2,3,3)</p>\n<p>Below can be done<br>\na = a.reshape(2,2,3,1)</p>",
      "rawMarkdown": "I think it's not possible to reshape (224,224,3) into shape (224,224,3,3). \nBecause you have 24*24*3 pixels on left and 224*224*3*3 on right. This is vague I believe.\n\nimport numpy as np\na = np.random.rand(2,2,3)\n\nBelow will give error: \na = a.reshape(2,2,3,3)\n\n\nBelow can be done\na = a.reshape(2,2,3,1)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1791408,
      "author_name": "kotanoda",
      "author_url": "",
      "post_date": "05/16/2022 02:06:13",
      "content": "<p>I am not familiar with ImageDataGenerator, but  <br>\n<code>IM_SIZE = (224, 224, 3)</code> can cause a problem, How about setting <code>target_size = (224, 224)</code></p>\n<p>By the way, I think it can cause private sharing, so I suggest you discuss it in the Kaggle environment.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1792516,
      "author_name": "bhavesh0124",
      "author_url": "",
      "post_date": "05/17/2022 03:22:15",
      "content": "<p>I think it's not possible to reshape (224,224,3) into shape (224,224,3,3). <br>\nBecause you have 24<em>24</em>3 pixels on left and 224<em>224</em>3*3 on right. This is vague I believe.</p>\n<p>import numpy as np<br>\na = np.random.rand(2,2,3)</p>\n<p>Below will give error: <br>\na = a.reshape(2,2,3,3)</p>\n<p>Below can be done<br>\na = a.reshape(2,2,3,1)</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1787113": "I am new to machine learning and here is my stackoverflow question link. I think it has every context.\nSomeone help me please.\n\n[https://stackoverflow.com/questions/72230205/valueerror-when-fitting-my-model-valueerror-could-not-broadcast-input-array-f](url)",
    "1791408": "I am not familiar with ImageDataGenerator, but  \n`IM_SIZE = (224, 224, 3)` can cause a problem, How about setting `target_size = (224, 224)`\n\nBy the way, I think it can cause private sharing, so I suggest you discuss it in the Kaggle environment.",
    "1792516": "I think it's not possible to reshape (224,224,3) into shape (224,224,3,3). \nBecause you have 24*24*3 pixels on left and 224*224*3*3 on right. This is vague I believe.\n\nimport numpy as np\na = np.random.rand(2,2,3)\n\nBelow will give error: \na = a.reshape(2,2,3,3)\n\n\nBelow can be done\na = a.reshape(2,2,3,1)"
  },
  "source": "meta"
}