{
  "id": 166267,
  "title": "[help] Can't understand the error given by model.fit()",
  "url": "/competitions/siim-isic-melanoma-classification/discussion/166267",
  "author_name": "",
  "post_date": "2020-07-12T10:34:49.011651800Z",
  "votes": null,
  "comment_count": 3,
  "views": 0,
  "content": "<p>You can find my kaggle kernel <a href=\"https://www.kaggle.com/ayushporwal/kernel505b9ab756/edit\">here</a></p>\n\n<p>What am I doing wrong? Any help is highly appreciated. Thank you :)</p>",
  "messages": [
    {
      "id": "925806",
      "postDate": "07/12/2020 10:34:49",
      "content": "<p>You can find my kaggle kernel <a href=\"https://www.kaggle.com/ayushporwal/kernel505b9ab756/edit\">here</a></p>\n\n<p>What am I doing wrong? Any help is highly appreciated. Thank you :)</p>",
      "rawMarkdown": "You can find my kaggle kernel [here](https://www.kaggle.com/ayushporwal/kernel505b9ab756/edit)\n\nWhat am I doing wrong? Any help is highly appreciated. Thank you :)",
      "votes": null
    },
    {
      "id": "925947",
      "postDate": "07/12/2020 11:50:39",
      "content": "<p>Unless you commit your notebook we cannot see the logs.</p>",
      "rawMarkdown": "Unless you commit your notebook we cannot see the logs.",
      "votes": null
    },
    {
      "id": "926014",
      "postDate": "07/12/2020 12:47:01",
      "content": "<p>Hi Pranav, I have now committed the notebook. Please check once and let me know.</p>",
      "rawMarkdown": "Hi Pranav, I have now committed the notebook. Please check once and let me know.",
      "votes": null
    },
    {
      "id": "929682",
      "postDate": "07/14/2020 21:00:45",
      "content": "<p>There is a mismatch in the shape of the input you gave and input which model is expecting. See last line ValueError: \"Input 0 of layer sequential is incompatible with the layer: expected ndim=4, found ndim=2. Full shape received: [None, 1]\" Check this link hope this helps <a href=\"https://stackoverflow.com/questions/47665391/keras-valueerror-input-0-is-incompatible-with-layer-conv2d-1-expected-ndim-4\">https://stackoverflow.com/questions/47665391/keras-valueerror-input-0-is-incompatible-with-layer-conv2d-1-expected-ndim-4</a></p>",
      "rawMarkdown": "There is a mismatch in the shape of the input you gave and input which model is expecting. See last line ValueError: \"Input 0 of layer sequential is incompatible with the layer: expected ndim=4, found ndim=2. Full shape received: [None, 1]\" Check this link hope this helps https://stackoverflow.com/questions/47665391/keras-valueerror-input-0-is-incompatible-with-layer-conv2d-1-expected-ndim-4",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 925947,
      "author_name": "pranavkasela",
      "author_url": "",
      "post_date": "07/12/2020 11:50:39",
      "content": "<p>Unless you commit your notebook we cannot see the logs.</p>",
      "votes": null,
      "replies": [
        {
          "id": 926014,
          "author_name": "ayushporwal",
          "author_url": "",
          "post_date": "07/12/2020 12:47:01",
          "content": "<p>Hi Pranav, I have now committed the notebook. Please check once and let me know.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 929682,
      "author_name": "akanumur",
      "author_url": "",
      "post_date": "07/14/2020 21:00:45",
      "content": "<p>There is a mismatch in the shape of the input you gave and input which model is expecting. See last line ValueError: \"Input 0 of layer sequential is incompatible with the layer: expected ndim=4, found ndim=2. Full shape received: [None, 1]\" Check this link hope this helps <a href=\"https://stackoverflow.com/questions/47665391/keras-valueerror-input-0-is-incompatible-with-layer-conv2d-1-expected-ndim-4\">https://stackoverflow.com/questions/47665391/keras-valueerror-input-0-is-incompatible-with-layer-conv2d-1-expected-ndim-4</a></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "925806": "You can find my kaggle kernel [here](https://www.kaggle.com/ayushporwal/kernel505b9ab756/edit)\n\nWhat am I doing wrong? Any help is highly appreciated. Thank you :)",
    "925947": "Unless you commit your notebook we cannot see the logs.",
    "926014": "Hi Pranav, I have now committed the notebook. Please check once and let me know.",
    "929682": "There is a mismatch in the shape of the input you gave and input which model is expecting. See last line ValueError: \"Input 0 of layer sequential is incompatible with the layer: expected ndim=4, found ndim=2. Full shape received: [None, 1]\" Check this link hope this helps https://stackoverflow.com/questions/47665391/keras-valueerror-input-0-is-incompatible-with-layer-conv2d-1-expected-ndim-4"
  },
  "source": "meta"
}