{
  "id": 218313,
  "title": "Quarry regarding COLAB 🤷‍♂️",
  "url": "/competitions/ranzcr-clip-catheter-line-classification/discussion/218313",
  "author_name": "",
  "post_date": "2021-02-10T05:14:52.489784300Z",
  "votes": 10,
  "comment_count": 2,
  "views": 0,
  "content": "<p>HOW CAN I run GOOGLE COLAB as <strong>RUN AND SAVE COMMITS</strong> ?<br>\nKaggle provide us an excellent feature as '<em>Run and commit</em>' Notebook, Can we do same while model training in colab env. ?</p>\n<p>I found this code to paste in page console-</p>\n<pre><code>function ConnectButton(){\nconsole.log(\"Working\"); \ndocument.querySelector(\"#connect​\").click() \n}\nsetInterval(ConnectButton,80000);\n</code></pre>\n<p>But it only works when my PC in online or in working condition. But as soon as I run offline for more than half hour or I shut down my PC, the work progress or saved models ( in drive ) are not reflected?</p>\n<p>Can you suggest some hacks/tip ?<br>\n~THANK YOU 🙌🙏 </p>",
  "messages": [
    {
      "id": "1194217",
      "postDate": "02/10/2021 05:14:52",
      "content": "<p>HOW CAN I run GOOGLE COLAB as <strong>RUN AND SAVE COMMITS</strong> ?<br>\nKaggle provide us an excellent feature as '<em>Run and commit</em>' Notebook, Can we do same while model training in colab env. ?</p>\n<p>I found this code to paste in page console-</p>\n<pre><code>function ConnectButton(){\nconsole.log(\"Working\"); \ndocument.querySelector(\"#connect​\").click() \n}\nsetInterval(ConnectButton,80000);\n</code></pre>\n<p>But it only works when my PC in online or in working condition. But as soon as I run offline for more than half hour or I shut down my PC, the work progress or saved models ( in drive ) are not reflected?</p>\n<p>Can you suggest some hacks/tip ?<br>\n~THANK YOU 🙌🙏 </p>",
      "rawMarkdown": "HOW CAN I run GOOGLE COLAB as **RUN AND SAVE COMMITS** ?\nKaggle provide us an excellent feature as '*Run and commit*' Notebook, Can we do same while model training in colab env. ?\n\nI found this code to paste in page console-\n             \n    function ConnectButton(){\n    console.log(\"Working\"); \n    document.querySelector(\"#connect​\").click() \n    }\n    setInterval(ConnectButton,80000);\n\n\nBut it only works when my PC in online or in working condition. But as soon as I run offline for more than half hour or I shut down my PC, the work progress or saved models ( in drive ) are not reflected?\n\nCan you suggest some hacks/tip ?\n~THANK YOU 🙌🙏",
      "votes": null
    },
    {
      "id": "1199188",
      "postDate": "02/13/2021 15:33:15",
      "content": "<p>It already keep saving every 2-5 minutes.You don't have to save it…it's automatically save all your work</p>",
      "rawMarkdown": "It already keep saving every 2-5 minutes.You don't have to save it...it's automatically save all your work",
      "votes": null
    },
    {
      "id": "1199757",
      "postDate": "02/14/2021 05:17:13",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/akhileshdkapse\" target=\"_blank\">@akhileshdkapse</a> ,</p>\n<p>You can follow the excellent tips given in github link below of how to save and load models in Colab.</p>\n<p><a href=\"https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_load.ipynb\" target=\"_blank\">https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_load.ipynb</a></p>\n<p>Hope this helps!</p>\n<p>Thanks and Regards,<br>\nSaurabh Bagchi</p>",
      "rawMarkdown": "Hi @akhileshdkapse ,\n\nYou can follow the excellent tips given in github link below of how to save and load models in Colab.\n\nhttps://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_load.ipynb\n\nHope this helps!\n\nThanks and Regards,\nSaurabh Bagchi",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1199188,
      "author_name": "dikshabhati2002",
      "author_url": "",
      "post_date": "02/13/2021 15:33:15",
      "content": "<p>It already keep saving every 2-5 minutes.You don't have to save it…it's automatically save all your work</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1199757,
      "author_name": "saurabhbagchi",
      "author_url": "",
      "post_date": "02/14/2021 05:17:13",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/akhileshdkapse\" target=\"_blank\">@akhileshdkapse</a> ,</p>\n<p>You can follow the excellent tips given in github link below of how to save and load models in Colab.</p>\n<p><a href=\"https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_load.ipynb\" target=\"_blank\">https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_load.ipynb</a></p>\n<p>Hope this helps!</p>\n<p>Thanks and Regards,<br>\nSaurabh Bagchi</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1194217": "HOW CAN I run GOOGLE COLAB as **RUN AND SAVE COMMITS** ?\nKaggle provide us an excellent feature as '*Run and commit*' Notebook, Can we do same while model training in colab env. ?\n\nI found this code to paste in page console-\n             \n    function ConnectButton(){\n    console.log(\"Working\"); \n    document.querySelector(\"#connect​\").click() \n    }\n    setInterval(ConnectButton,80000);\n\n\nBut it only works when my PC in online or in working condition. But as soon as I run offline for more than half hour or I shut down my PC, the work progress or saved models ( in drive ) are not reflected?\n\nCan you suggest some hacks/tip ?\n~THANK YOU 🙌🙏",
    "1199188": "It already keep saving every 2-5 minutes.You don't have to save it...it's automatically save all your work",
    "1199757": "Hi @akhileshdkapse ,\n\nYou can follow the excellent tips given in github link below of how to save and load models in Colab.\n\nhttps://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/tutorials/keras/save_and_load.ipynb\n\nHope this helps!\n\nThanks and Regards,\nSaurabh Bagchi"
  },
  "source": "meta"
}