{
  "id": 388596,
  "title": "Is anybody using Colab to try to retrain Graphnet/Dynedge?",
  "url": "/competitions/icecube-neutrinos-in-deep-ice/discussion/388596",
  "author_name": "",
  "post_date": "2023-02-18T13:19:04.874270800Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I'm really just playing around with this to become more familiar with Colab and Python, so I decided to try retraining some graphnet weights in Colab. </p>\n<p>I thought that maybe setting it to train for another few hours or comparing training on different batches could be worthwhile, but I'm having a hard time getting <a href=\"https://github.com/graphnet-team/graphnet/tree/main/examples/04_training\" target=\"_blank\">02_train_model_without_configs.py</a> to even run.</p>\n<p>I've imported and installed condocolab but when I try to run '02_train_model_without_configs.py' I keep getting the output: <em>ModuleNotFoundError: No module named 'graphnet'</em></p>\n<p>I've also searched and tried multiple ways of modifying or adding the appropriate paths, such as</p>\n<p><code>sys.path.insert(1, '/content/gdrive/My Drive/graphnet/src/graphnet')</code> and<br>\n<code>%env PYTHONPATH=\"$/env/python:/content/gdrive/My Drive/graphnet/src/graphnet\"</code></p>\n<p>Can someone who knows Colab point out where I'm going wrong? Thanks.</p>",
  "messages": [
    {
      "id": "2149598",
      "postDate": "02/18/2023 13:19:04",
      "content": "<p>I'm really just playing around with this to become more familiar with Colab and Python, so I decided to try retraining some graphnet weights in Colab. </p>\n<p>I thought that maybe setting it to train for another few hours or comparing training on different batches could be worthwhile, but I'm having a hard time getting <a href=\"https://github.com/graphnet-team/graphnet/tree/main/examples/04_training\" target=\"_blank\">02_train_model_without_configs.py</a> to even run.</p>\n<p>I've imported and installed condocolab but when I try to run '02_train_model_without_configs.py' I keep getting the output: <em>ModuleNotFoundError: No module named 'graphnet'</em></p>\n<p>I've also searched and tried multiple ways of modifying or adding the appropriate paths, such as</p>\n<p><code>sys.path.insert(1, '/content/gdrive/My Drive/graphnet/src/graphnet')</code> and<br>\n<code>%env PYTHONPATH=\"$/env/python:/content/gdrive/My Drive/graphnet/src/graphnet\"</code></p>\n<p>Can someone who knows Colab point out where I'm going wrong? Thanks.</p>",
      "rawMarkdown": "I'm really just playing around with this to become more familiar with Colab and Python, so I decided to try retraining some graphnet weights in Colab. \n\nI thought that maybe setting it to train for another few hours or comparing training on different batches could be worthwhile, but I'm having a hard time getting [02_train_model_without_configs.py](https://github.com/graphnet-team/graphnet/tree/main/examples/04_training) to even run.\n\nI've imported and installed condocolab but when I try to run '02_train_model_without_configs.py' I keep getting the output: *ModuleNotFoundError: No module named 'graphnet'*\n\nI've also searched and tried multiple ways of modifying or adding the appropriate paths, such as\n\n`sys.path.insert(1, '/content/gdrive/My Drive/graphnet/src/graphnet')` and\n`%env PYTHONPATH=\"$/env/python:/content/gdrive/My Drive/graphnet/src/graphnet\"`\n\nCan someone who knows Colab point out where I'm going wrong? Thanks.",
      "votes": null
    },
    {
      "id": "2150048",
      "postDate": "02/18/2023 22:17:50",
      "content": "<p>I only got a small uplift from retraining it</p>",
      "rawMarkdown": "I only got a small uplift from retraining it",
      "votes": null
    },
    {
      "id": "2150439",
      "postDate": "02/19/2023 08:56:30",
      "content": "<p>I'd be happy with that for now.</p>\n<p>Were you using a Colab notebook and the <a href=\"https://pypi.org/project/condacolab/\" target=\"_blank\">condacolab</a> package?</p>",
      "rawMarkdown": "I'd be happy with that for now.\n\nWere you using a Colab notebook and the [condacolab](https://pypi.org/project/condacolab/) package?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2150048,
      "author_name": "domdejonge",
      "author_url": "",
      "post_date": "02/18/2023 22:17:50",
      "content": "<p>I only got a small uplift from retraining it</p>",
      "votes": null,
      "replies": [
        {
          "id": 2150439,
          "author_name": "michaelbarrett",
          "author_url": "",
          "post_date": "02/19/2023 08:56:30",
          "content": "<p>I'd be happy with that for now.</p>\n<p>Were you using a Colab notebook and the <a href=\"https://pypi.org/project/condacolab/\" target=\"_blank\">condacolab</a> package?</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2149598": "I'm really just playing around with this to become more familiar with Colab and Python, so I decided to try retraining some graphnet weights in Colab. \n\nI thought that maybe setting it to train for another few hours or comparing training on different batches could be worthwhile, but I'm having a hard time getting [02_train_model_without_configs.py](https://github.com/graphnet-team/graphnet/tree/main/examples/04_training) to even run.\n\nI've imported and installed condocolab but when I try to run '02_train_model_without_configs.py' I keep getting the output: *ModuleNotFoundError: No module named 'graphnet'*\n\nI've also searched and tried multiple ways of modifying or adding the appropriate paths, such as\n\n`sys.path.insert(1, '/content/gdrive/My Drive/graphnet/src/graphnet')` and\n`%env PYTHONPATH=\"$/env/python:/content/gdrive/My Drive/graphnet/src/graphnet\"`\n\nCan someone who knows Colab point out where I'm going wrong? Thanks.",
    "2150048": "I only got a small uplift from retraining it",
    "2150439": "I'd be happy with that for now.\n\nWere you using a Colab notebook and the [condacolab](https://pypi.org/project/condacolab/) package?"
  },
  "source": "meta"
}