{
  "id": 76023,
  "title": "Avoid Kernel running time exceed error for the second stage",
  "url": "/competitions/quora-insincere-questions-classification/discussion/76023",
  "author_name": "",
  "post_date": "2018-12-28T16:00:46.573554900Z",
  "votes": 17,
  "comment_count": 6,
  "views": 0,
  "content": "<p>A lot of kernels are not going to run in the second stage due to time constraints. \nOne thing that you can do to simulate if your kernel is going to fail is to replicate your test data 7(376k/56k) times using something like :</p>\n\n<pre><code>test_df = pd.concat([test_data]*7)\n</code></pre>\n\n<p>And running your kernel. \nIf you are able to submit to competition, you are most probably good to go. </p>",
  "messages": [
    {
      "id": "446741",
      "postDate": "12/28/2018 16:00:46",
      "content": "<p>A lot of kernels are not going to run in the second stage due to time constraints. \nOne thing that you can do to simulate if your kernel is going to fail is to replicate your test data 7(376k/56k) times using something like :</p>\n\n<pre><code>test_df = pd.concat([test_data]*7)\n</code></pre>\n\n<p>And running your kernel. \nIf you are able to submit to competition, you are most probably good to go. </p>",
      "rawMarkdown": "A lot of kernels are not going to run in the second stage due to time constraints. \nOne thing that you can do to simulate if your kernel is going to fail is to replicate your test data 7(376k/56k) times using something like :\n\n    test_df = pd.concat([test_data]*7)\n\nAnd running your kernel. \nIf you are able to submit to competition, you are most probably good to go.",
      "votes": null
    },
    {
      "id": "447063",
      "postDate": "12/29/2018 04:42:10",
      "content": "<p>Sometimes my kernel runs about 7300s but the result can be submited. I doubt that the 2 hours limit is not absolute. </p>",
      "rawMarkdown": "Sometimes my kernel runs about 7300s but the result can be submited. I doubt that the 2 hours limit is not absolute.",
      "votes": null
    },
    {
      "id": "447126",
      "postDate": "12/29/2018 07:29:25",
      "content": "<p>Same for me. I have seen that if its less than 124 mins it will still be allowed to submit.</p>",
      "rawMarkdown": "Same for me. I have seen that if its less than 124 mins it will still be allowed to submit.",
      "votes": null
    },
    {
      "id": "447241",
      "postDate": "12/29/2018 12:41:26",
      "content": "<p>I think organizers will increase the time limit.</p>\n\n<p>Upd:</p>\n\n<pre><code>Kernels will need to take into consideration the additional processing and inference time of the larger Test dataset. That will need to fit into the 2 / 6 hour constraints.\n</code></pre>\n\n<p><a href=\"https://www.kaggle.com/c/quora-insincere-questions-classification/discussion/70715#441672\">https://www.kaggle.com/c/quora-insincere-questions-classification/discussion/70715#441672</a></p>",
      "rawMarkdown": "I think organizers will increase the time limit.\n\nUpd:\n\n    Kernels will need to take into consideration the additional processing and inference time of the larger Test dataset. That will need to fit into the 2 / 6 hour constraints.\n\nhttps://www.kaggle.com/c/quora-insincere-questions-classification/discussion/70715#441672",
      "votes": null
    },
    {
      "id": "447294",
      "postDate": "12/29/2018 15:27:45",
      "content": "<p>Well, that statement clearly says they won't.</p>",
      "rawMarkdown": "Well, that statement clearly says they won't.",
      "votes": null
    },
    {
      "id": "447577",
      "postDate": "12/30/2018 05:23:18",
      "content": "<p>I think you need to calculate 7 * (preprocess time for test data) in order to figure out the exact time you need to execute the script.</p>",
      "rawMarkdown": "I think you need to calculate 7 * (preprocess time for test data) in order to figure out the exact time you need to execute the script.",
      "votes": null
    },
    {
      "id": "447703",
      "postDate": "12/30/2018 11:20:20",
      "content": "<p>The main problem with using this approach is that the time is not only taken in preprocessing. As you add more test data your models might also take more time to predict. </p>",
      "rawMarkdown": "The main problem with using this approach is that the time is not only taken in preprocessing. As you add more test data your models might also take more time to predict.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 447063,
      "author_name": "kaggleczs",
      "author_url": "",
      "post_date": "12/29/2018 04:42:10",
      "content": "<p>Sometimes my kernel runs about 7300s but the result can be submited. I doubt that the 2 hours limit is not absolute. </p>",
      "votes": null,
      "replies": [
        {
          "id": 447126,
          "author_name": "mlwhiz",
          "author_url": "",
          "post_date": "12/29/2018 07:29:25",
          "content": "<p>Same for me. I have seen that if its less than 124 mins it will still be allowed to submit.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 447241,
      "author_name": "",
      "author_url": "",
      "post_date": "12/29/2018 12:41:26",
      "content": "<p>I think organizers will increase the time limit.</p>\n\n<p>Upd:</p>\n\n<pre><code>Kernels will need to take into consideration the additional processing and inference time of the larger Test dataset. That will need to fit into the 2 / 6 hour constraints.\n</code></pre>\n\n<p><a href=\"https://www.kaggle.com/c/quora-insincere-questions-classification/discussion/70715#441672\">https://www.kaggle.com/c/quora-insincere-questions-classification/discussion/70715#441672</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 447294,
          "author_name": "philippsinger",
          "author_url": "",
          "post_date": "12/29/2018 15:27:45",
          "content": "<p>Well, that statement clearly says they won't.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 447577,
      "author_name": "hidehisaarai1213",
      "author_url": "",
      "post_date": "12/30/2018 05:23:18",
      "content": "<p>I think you need to calculate 7 * (preprocess time for test data) in order to figure out the exact time you need to execute the script.</p>",
      "votes": null,
      "replies": [
        {
          "id": 447703,
          "author_name": "mlwhiz",
          "author_url": "",
          "post_date": "12/30/2018 11:20:20",
          "content": "<p>The main problem with using this approach is that the time is not only taken in preprocessing. As you add more test data your models might also take more time to predict. </p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "446741": "A lot of kernels are not going to run in the second stage due to time constraints. \nOne thing that you can do to simulate if your kernel is going to fail is to replicate your test data 7(376k/56k) times using something like :\n\n    test_df = pd.concat([test_data]*7)\n\nAnd running your kernel. \nIf you are able to submit to competition, you are most probably good to go.",
    "447063": "Sometimes my kernel runs about 7300s but the result can be submited. I doubt that the 2 hours limit is not absolute.",
    "447126": "Same for me. I have seen that if its less than 124 mins it will still be allowed to submit.",
    "447241": "I think organizers will increase the time limit.\n\nUpd:\n\n    Kernels will need to take into consideration the additional processing and inference time of the larger Test dataset. That will need to fit into the 2 / 6 hour constraints.\n\nhttps://www.kaggle.com/c/quora-insincere-questions-classification/discussion/70715#441672",
    "447294": "Well, that statement clearly says they won't.",
    "447577": "I think you need to calculate 7 * (preprocess time for test data) in order to figure out the exact time you need to execute the script.",
    "447703": "The main problem with using this approach is that the time is not only taken in preprocessing. As you add more test data your models might also take more time to predict."
  },
  "source": "meta"
}