{
  "id": 448716,
  "title": "How to get your submission timing?",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/448716",
  "author_name": "",
  "post_date": "2023-10-20T22:26:12.554358500Z",
  "votes": 27,
  "comment_count": 7,
  "views": 0,
  "content": "<p>Hi fellow kagglers,</p>\n<p>As this competition is the coding one, <strong>I would like to share my code for submissions timing. The <a href=\"https://www.kaggle.com/code/alexryzhkov/submissions-timer-script/notebook\" target=\"_blank\">link for it is here</a></strong>. This is how the results of this script looks like:</p>\n<p>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F19099%2F9567e093bc91201493adadc80f4936a5%2F2023-10-21%20%2001.12.39.png?generation=1697840747509920&amp;alt=media\" alt=\"script screenshot\">\n</p>\n<p>To make it more suitable for your timezone you can change the <code>GMT_OFFSET</code> variable in the beginning of the script - for me it is <code>GMT+3</code> that's why <code>GMT_OFFSET=3</code> in the script.</p>\n<p>If you know how much time your submission goes, you can:</p>\n<ul>\n<li>if it receive an exception, you can find the approximate place of fail and fix it</li>\n<li>if it was successful, you can find out how many more models you can add to be in time limit</li>\n</ul>\n<p>Hope it will help you to make your best sub even better :)</p>\n<p>All the best,<br>\nAlex</p>",
  "messages": [
    {
      "id": "2490656",
      "postDate": "10/20/2023 22:26:12",
      "content": "<p>Hi fellow kagglers,</p>\n<p>As this competition is the coding one, <strong>I would like to share my code for submissions timing. The <a href=\"https://www.kaggle.com/code/alexryzhkov/submissions-timer-script/notebook\" target=\"_blank\">link for it is here</a></strong>. This is how the results of this script looks like:</p>\n<p>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F19099%2F9567e093bc91201493adadc80f4936a5%2F2023-10-21%20%2001.12.39.png?generation=1697840747509920&amp;alt=media\" alt=\"script screenshot\">\n</p>\n<p>To make it more suitable for your timezone you can change the <code>GMT_OFFSET</code> variable in the beginning of the script - for me it is <code>GMT+3</code> that's why <code>GMT_OFFSET=3</code> in the script.</p>\n<p>If you know how much time your submission goes, you can:</p>\n<ul>\n<li>if it receive an exception, you can find the approximate place of fail and fix it</li>\n<li>if it was successful, you can find out how many more models you can add to be in time limit</li>\n</ul>\n<p>Hope it will help you to make your best sub even better :)</p>\n<p>All the best,<br>\nAlex</p>",
      "rawMarkdown": "Hi fellow kagglers,\n\nAs this competition is the coding one, **I would like to share my code for submissions timing. The [link for it is here](https://www.kaggle.com/code/alexryzhkov/submissions-timer-script/notebook)**. This is how the results of this script looks like:\n\n<p align=\"center\">\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F19099%2F9567e093bc91201493adadc80f4936a5%2F2023-10-21%20%2001.12.39.png?generation=1697840747509920&alt=media\" alt=\"script screenshot\" width=\"50%\"/>\n</p>\n\nTo make it more suitable for your timezone you can change the `GMT_OFFSET` variable in the beginning of the script - for me it is `GMT+3` that's why `GMT_OFFSET=3` in the script.\n\nIf you know how much time your submission goes, you can:\n- if it receive an exception, you can find the approximate place of fail and fix it\n- if it was successful, you can find out how many more models you can add to be in time limit\n\nHope it will help you to make your best sub even better :)\n\nAll the best,\nAlex",
      "votes": null
    },
    {
      "id": "2490685",
      "postDate": "10/20/2023 23:45:16",
      "content": "<p>A simple and convenient script! Thanks!</p>",
      "rawMarkdown": "A simple and convenient script! Thanks!",
      "votes": null
    },
    {
      "id": "2490686",
      "postDate": "10/20/2023 23:46:17",
      "content": "<p>Nice to hear! You are welcome :)</p>",
      "rawMarkdown": "Nice to hear! You are welcome :)",
      "votes": null
    },
    {
      "id": "2491697",
      "postDate": "10/21/2023 22:52:58",
      "content": "<p>That's a gem share, thank you. </p>",
      "rawMarkdown": "That's a gem share, thank you.",
      "votes": null
    },
    {
      "id": "2493484",
      "postDate": "10/23/2023 12:57:53",
      "content": "<p>The script is not working for me. Get the following log messages.</p>\n<pre><code>Some exception on getting data  Kaggle\nLets wait   seconds   again\n</code></pre>",
      "rawMarkdown": "The script is not working for me. Get the following log messages.\n\n```python\nSome exception on getting data from Kaggle\nLets wait for 30 seconds and try again\n```",
      "votes": null
    },
    {
      "id": "2493539",
      "postDate": "10/23/2023 13:24:11",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/bkowshik\" target=\"_blank\">@bkowshik</a>,</p>\n<p>Please check that your Kaggle API is working properly from the terminal - you need to use your own <code>.kaggle/kaggle.json</code> to make it work. Also please setup the proper competition name to get your submission</p>",
      "rawMarkdown": "Hi @bkowshik,\n\nPlease check that your Kaggle API is working properly from the terminal - you need to use your own `.kaggle/kaggle.json` to make it work. Also please setup the proper competition name to get your submission",
      "votes": null
    },
    {
      "id": "2493541",
      "postDate": "10/23/2023 13:25:15",
      "content": "<p>Thanks for your feedback <a href=\"https://www.kaggle.com/nischaydnk\" target=\"_blank\">@nischaydnk</a>, I’m currently glad to share my experience with kaggle community</p>",
      "rawMarkdown": "Thanks for your feedback @nischaydnk, I’m currently glad to share my experience with kaggle community",
      "votes": null
    },
    {
      "id": "2496675",
      "postDate": "10/24/2023 07:48:35",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/alexryzhkov\" target=\"_blank\">@alexryzhkov</a> Got this to work with the following code snippet to the notebook.</p>\n<pre><code>\n!mkdir /root/.kaggle\n\n\n (, )  f:\n    f.write()\n\n\n!chmod  /root/.kaggle/kaggle.json\n</code></pre>",
      "rawMarkdown": "Thank you @alexryzhkov Got this to work with the following code snippet to the notebook.\n\n```python\n# Create a directory to store Kaggle configs.\n!mkdir /root/.kaggle\n\n# Write token to a config file.\nwith open('/root/.kaggle/kaggle.json', 'w') as f:\n    f.write('{\"username\":\"<Insert username>\",\"key\":\"<Insert key>\"}')\n\n# Setup only read permissions for the config file.\n!chmod 600 /root/.kaggle/kaggle.json\n```",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2490685,
      "author_name": "ey4read1mk4realtv",
      "author_url": "",
      "post_date": "10/20/2023 23:45:16",
      "content": "<p>A simple and convenient script! Thanks!</p>",
      "votes": null,
      "replies": [
        {
          "id": 2490686,
          "author_name": "alexryzhkov",
          "author_url": "",
          "post_date": "10/20/2023 23:46:17",
          "content": "<p>Nice to hear! You are welcome :)</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2491697,
      "author_name": "nischaydnk",
      "author_url": "",
      "post_date": "10/21/2023 22:52:58",
      "content": "<p>That's a gem share, thank you. </p>",
      "votes": null,
      "replies": [
        {
          "id": 2493541,
          "author_name": "alexryzhkov",
          "author_url": "",
          "post_date": "10/23/2023 13:25:15",
          "content": "<p>Thanks for your feedback <a href=\"https://www.kaggle.com/nischaydnk\" target=\"_blank\">@nischaydnk</a>, I’m currently glad to share my experience with kaggle community</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2493484,
      "author_name": "bkowshik",
      "author_url": "",
      "post_date": "10/23/2023 12:57:53",
      "content": "<p>The script is not working for me. Get the following log messages.</p>\n<pre><code>Some exception on getting data  Kaggle\nLets wait   seconds   again\n</code></pre>",
      "votes": null,
      "replies": [
        {
          "id": 2493539,
          "author_name": "alexryzhkov",
          "author_url": "",
          "post_date": "10/23/2023 13:24:11",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/bkowshik\" target=\"_blank\">@bkowshik</a>,</p>\n<p>Please check that your Kaggle API is working properly from the terminal - you need to use your own <code>.kaggle/kaggle.json</code> to make it work. Also please setup the proper competition name to get your submission</p>",
          "votes": null,
          "replies": [
            {
              "id": 2496675,
              "author_name": "bkowshik",
              "author_url": "",
              "post_date": "10/24/2023 07:48:35",
              "content": "<p>Thank you <a href=\"https://www.kaggle.com/alexryzhkov\" target=\"_blank\">@alexryzhkov</a> Got this to work with the following code snippet to the notebook.</p>\n<pre><code>\n!mkdir /root/.kaggle\n\n\n (, )  f:\n    f.write()\n\n\n!chmod  /root/.kaggle/kaggle.json\n</code></pre>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2490656": "Hi fellow kagglers,\n\nAs this competition is the coding one, **I would like to share my code for submissions timing. The [link for it is here](https://www.kaggle.com/code/alexryzhkov/submissions-timer-script/notebook)**. This is how the results of this script looks like:\n\n<p align=\"center\">\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F19099%2F9567e093bc91201493adadc80f4936a5%2F2023-10-21%20%2001.12.39.png?generation=1697840747509920&alt=media\" alt=\"script screenshot\" width=\"50%\"/>\n</p>\n\nTo make it more suitable for your timezone you can change the `GMT_OFFSET` variable in the beginning of the script - for me it is `GMT+3` that's why `GMT_OFFSET=3` in the script.\n\nIf you know how much time your submission goes, you can:\n- if it receive an exception, you can find the approximate place of fail and fix it\n- if it was successful, you can find out how many more models you can add to be in time limit\n\nHope it will help you to make your best sub even better :)\n\nAll the best,\nAlex",
    "2490685": "A simple and convenient script! Thanks!",
    "2490686": "Nice to hear! You are welcome :)",
    "2491697": "That's a gem share, thank you.",
    "2493484": "The script is not working for me. Get the following log messages.\n\n```python\nSome exception on getting data from Kaggle\nLets wait for 30 seconds and try again\n```",
    "2493539": "Hi @bkowshik,\n\nPlease check that your Kaggle API is working properly from the terminal - you need to use your own `.kaggle/kaggle.json` to make it work. Also please setup the proper competition name to get your submission",
    "2493541": "Thanks for your feedback @nischaydnk, I’m currently glad to share my experience with kaggle community",
    "2496675": "Thank you @alexryzhkov Got this to work with the following code snippet to the notebook.\n\n```python\n# Create a directory to store Kaggle configs.\n!mkdir /root/.kaggle\n\n# Write token to a config file.\nwith open('/root/.kaggle/kaggle.json', 'w') as f:\n    f.write('{\"username\":\"<Insert username>\",\"key\":\"<Insert key>\"}')\n\n# Setup only read permissions for the config file.\n!chmod 600 /root/.kaggle/kaggle.json\n```"
  },
  "source": "meta"
}