{
  "id": 538358,
  "title": "solution for \"notebook threw exception \"　:　memorandum",
  "url": "/competitions/rsna-2024-lumbar-spine-degenerative-classification/discussion/538358",
  "author_name": "UT",
  "post_date": "2024-10-08T14:32:20.012000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I've been struggling with a \"Notebook Threw Exception\" error throughout the competition. Despite trying various fixes, the issue persisted for a long time.</p>\n<p>Finally, after making some last-minute changes to the code, I was able to successfully submit my notebook just before the submission deadline and received a score!</p>\n<pre><code>   def (study_id, idx_temp):\n    row_name = []\n    for s_id in study_id:\n        row_name.([.([(s_id), _]) for _ in idx_temp])\n    return row_name\n\n# in Inference Loop\nrow_names.((batch[].().() ,idx_temp))\n</code></pre>\n<p>----&gt;</p>\n<pre><code>  # in Inference Loop  \n  for cond in CONDITIONS:\n            for l in LEVELS:\n                row_names.((batch[].().()[]) +  + cond +  + l )\n​\n</code></pre>",
  "messages": [
    {
      "id": 3009941,
      "postDate": "2024-10-08T14:32:20.013Z",
      "content": "<p>I've been struggling with a \"Notebook Threw Exception\" error throughout the competition. Despite trying various fixes, the issue persisted for a long time.</p>\n<p>Finally, after making some last-minute changes to the code, I was able to successfully submit my notebook just before the submission deadline and received a score!</p>\n<pre><code>   def (study_id, idx_temp):\n    row_name = []\n    for s_id in study_id:\n        row_name.([.([(s_id), _]) for _ in idx_temp])\n    return row_name\n\n# in Inference Loop\nrow_names.((batch[].().() ,idx_temp))\n</code></pre>\n<p>----&gt;</p>\n<pre><code>  # in Inference Loop  \n  for cond in CONDITIONS:\n            for l in LEVELS:\n                row_names.((batch[].().()[]) +  + cond +  + l )\n​\n</code></pre>",
      "rawMarkdown": "I've been struggling with a \"Notebook Threw Exception\" error throughout the competition. Despite trying various fixes, the issue persisted for a long time.\n\nFinally, after making some last-minute changes to the code, I was able to successfully submit my notebook just before the submission deadline and received a score!\n\n```\n   def create_row_name(study_id, idx_temp):\n    row_name = []\n    for s_id in study_id:\n        row_name.extend([\"_\".join([str(s_id), _]) for _ in idx_temp])\n    return row_name\n\n# in Inference Loop\nrow_names.extend(create_row_name(batch[\"study_id\"].cpu().numpy() ,idx_temp))\n\n```\n\n---->\n\n```\n  # in Inference Loop  \n  for cond in CONDITIONS:\n            for l in LEVELS:\n                row_names.append(str(batch[\"study_id\"].cpu().numpy()[0]) + '_' + cond + '_' + l )\n​\n            \n```"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "3009941": "I've been struggling with a \"Notebook Threw Exception\" error throughout the competition. Despite trying various fixes, the issue persisted for a long time.\n\nFinally, after making some last-minute changes to the code, I was able to successfully submit my notebook just before the submission deadline and received a score!\n\n```\n   def create_row_name(study_id, idx_temp):\n    row_name = []\n    for s_id in study_id:\n        row_name.extend([\"_\".join([str(s_id), _]) for _ in idx_temp])\n    return row_name\n\n# in Inference Loop\nrow_names.extend(create_row_name(batch[\"study_id\"].cpu().numpy() ,idx_temp))\n\n```\n\n---->\n\n```\n  # in Inference Loop  \n  for cond in CONDITIONS:\n            for l in LEVELS:\n                row_names.append(str(batch[\"study_id\"].cpu().numpy()[0]) + '_' + cond + '_' + l )\n​\n            \n```"
  }
}