{
  "id": 103578,
  "title": "Kernel Threw Exception Error - please Help",
  "url": "/competitions/aptos2019-blindness-detection/discussion/103578",
  "author_name": "",
  "post_date": "2019-08-10T06:40:46.749220300Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hi!</p>\n\n<p>i'm trying to use \"load model\" with model that i trained and i'm getting error:\n\"Kernel Threw Exception\"</p>\n\n<p>this is part of my code: (the end of it)</p>\n\n<p>model = load_model('../input/complete-model/complete_model.h5')</p>\n\n<p>sub = model.predict(test_data)</p>\n\n<p>sub2.diagnosis = sub</p>\n\n<p>sub2.to_csv('submission.csv', index=False)</p>\n\n<p>what i'm doing wrong?</p>",
  "messages": [
    {
      "id": "596092",
      "postDate": "08/10/2019 06:40:46",
      "content": "<p>Hi!</p>\n\n<p>i'm trying to use \"load model\" with model that i trained and i'm getting error:\n\"Kernel Threw Exception\"</p>\n\n<p>this is part of my code: (the end of it)</p>\n\n<p>model = load_model('../input/complete-model/complete_model.h5')</p>\n\n<p>sub = model.predict(test_data)</p>\n\n<p>sub2.diagnosis = sub</p>\n\n<p>sub2.to_csv('submission.csv', index=False)</p>\n\n<p>what i'm doing wrong?</p>",
      "rawMarkdown": "Hi!\n\ni'm trying to use \"load model\" with model that i trained and i'm getting error:\n\"Kernel Threw Exception\"\n\nthis is part of my code: (the end of it)\n\nmodel = load_model('../input/complete-model/complete_model.h5')\n\nsub = model.predict(test_data)\n\nsub2.diagnosis = sub\n\nsub2.to_csv('submission.csv', index=False)\n\n\n\nwhat i'm doing wrong?",
      "votes": null
    },
    {
      "id": "596283",
      "postDate": "08/10/2019 12:28:01",
      "content": "<p>The diagnosis column in sub2 should be of type 'int64'. Can you try this: sub2.astype({'diagnosis': 'int64'})</p>",
      "rawMarkdown": "The diagnosis column in sub2 should be of type 'int64'. Can you try this: sub2.astype({'diagnosis': 'int64'})",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 596283,
      "author_name": "nanditab35",
      "author_url": "",
      "post_date": "08/10/2019 12:28:01",
      "content": "<p>The diagnosis column in sub2 should be of type 'int64'. Can you try this: sub2.astype({'diagnosis': 'int64'})</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "596092": "Hi!\n\ni'm trying to use \"load model\" with model that i trained and i'm getting error:\n\"Kernel Threw Exception\"\n\nthis is part of my code: (the end of it)\n\nmodel = load_model('../input/complete-model/complete_model.h5')\n\nsub = model.predict(test_data)\n\nsub2.diagnosis = sub\n\nsub2.to_csv('submission.csv', index=False)\n\n\n\nwhat i'm doing wrong?",
    "596283": "The diagnosis column in sub2 should be of type 'int64'. Can you try this: sub2.astype({'diagnosis': 'int64'})"
  },
  "source": "meta"
}