{
  "id": 72684,
  "title": "Why my notebook is interrupted and doesn't produce output?",
  "url": "/competitions/quora-insincere-questions-classification/discussion/72684",
  "author_name": "",
  "post_date": "2018-11-26T08:09:16.965171200Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Just like the attached picture shows, it seems like my notebook is interrupted during training, but the last jupyter code block is executed. There is no output file produced.</p>\n\n<p>I use GPU, but I'm sure that the overall run time is less than 1 hour (about 40 minutes).\nDoes anyone else has the same problem?</p>",
  "messages": [
    {
      "id": "427822",
      "postDate": "11/26/2018 08:09:16",
      "content": "<p>Just like the attached picture shows, it seems like my notebook is interrupted during training, but the last jupyter code block is executed. There is no output file produced.</p>\n\n<p>I use GPU, but I'm sure that the overall run time is less than 1 hour (about 40 minutes).\nDoes anyone else has the same problem?</p>",
      "rawMarkdown": "Just like the attached picture shows, it seems like my notebook is interrupted during training, but the last jupyter code block is executed. There is no output file produced.\n\nI use GPU, but I'm sure that the overall run time is less than 1 hour (about 40 minutes).\nDoes anyone else has the same problem?",
      "votes": null
    },
    {
      "id": "427934",
      "postDate": "11/26/2018 12:24:01",
      "content": "<p>Can you please show code of the function MakeSubmission(...)? \nI think the mystery is down there :-)</p>",
      "rawMarkdown": "Can you please show code of the function MakeSubmission(...)? \nI think the mystery is down there :-)",
      "votes": null
    },
    {
      "id": "428885",
      "postDate": "11/28/2018 03:07:11",
      "content": "<p>It has nothing special.</p>\n\n<pre><code>def MakeSubmission(m, ids, X):\n\n    if os.path.exists('submission.csv'):\n\n        os.remove('submission.csv')\n\n    threshold = 0.33\n\n    submit = pd.DataFrame()\n\n    submit['qid'] = ids\n\n    submit['prediction'] = m.predict(X)&gt;threshold\n\n    submit.to_csv('submission.csv', index=False)\n</code></pre>",
      "rawMarkdown": "It has nothing special.\n\n\tdef MakeSubmission(m, ids, X):\n\n\t\tif os.path.exists('submission.csv'):\n\n\t\t\tos.remove('submission.csv')\n\n\t\tthreshold = 0.33\n\n\t\tsubmit = pd.DataFrame()\n\n\t\tsubmit['qid'] = ids\n\n\t\tsubmit['prediction'] = m.predict(X)&gt;threshold\n\n\t\tsubmit.to_csv('submission.csv', index=False)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 427934,
      "author_name": "akuropatwinski",
      "author_url": "",
      "post_date": "11/26/2018 12:24:01",
      "content": "<p>Can you please show code of the function MakeSubmission(...)? \nI think the mystery is down there :-)</p>",
      "votes": null,
      "replies": [
        {
          "id": 428885,
          "author_name": "legendx",
          "author_url": "",
          "post_date": "11/28/2018 03:07:11",
          "content": "<p>It has nothing special.</p>\n\n<pre><code>def MakeSubmission(m, ids, X):\n\n    if os.path.exists('submission.csv'):\n\n        os.remove('submission.csv')\n\n    threshold = 0.33\n\n    submit = pd.DataFrame()\n\n    submit['qid'] = ids\n\n    submit['prediction'] = m.predict(X)&gt;threshold\n\n    submit.to_csv('submission.csv', index=False)\n</code></pre>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "427822": "Just like the attached picture shows, it seems like my notebook is interrupted during training, but the last jupyter code block is executed. There is no output file produced.\n\nI use GPU, but I'm sure that the overall run time is less than 1 hour (about 40 minutes).\nDoes anyone else has the same problem?",
    "427934": "Can you please show code of the function MakeSubmission(...)? \nI think the mystery is down there :-)",
    "428885": "It has nothing special.\n\n\tdef MakeSubmission(m, ids, X):\n\n\t\tif os.path.exists('submission.csv'):\n\n\t\t\tos.remove('submission.csv')\n\n\t\tthreshold = 0.33\n\n\t\tsubmit = pd.DataFrame()\n\n\t\tsubmit['qid'] = ids\n\n\t\tsubmit['prediction'] = m.predict(X)&gt;threshold\n\n\t\tsubmit.to_csv('submission.csv', index=False)"
  },
  "source": "meta"
}