{
  "id": 568383,
  "title": "tm_score scoring function changes shape of submission df",
  "url": "/competitions/stanford-rna-3d-folding/discussion/568383",
  "author_name": "",
  "post_date": "2025-03-15T14:25:11.546785200Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Not sure if others have come across this yet, but in case you score your submission at the end of your notebook, the score function changes the shape of your submission df by adding a target_id column at the end.  See screenshot below:</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11924794%2Fd5149988ff0553897abd8cd1094186f6%2Ftm_score_shape.png?generation=1742048506793862&amp;alt=media\" alt=\"\"></p>\n<p>Recommend using submission.copy().  Thanks to <a href=\"https://www.kaggle.com/jaejohn\" target=\"_blank\">@jaejohn</a> for posting his <a href=\"https://www.kaggle.com/code/jaejohn/rna-3d-folding-evaluation\" target=\"_blank\">RNA 3D Folding: Evaluation</a> nb from which this screenshot was taken!</p>",
  "messages": [
    {
      "id": "3150465",
      "postDate": "03/15/2025 14:25:11",
      "content": "<p>Not sure if others have come across this yet, but in case you score your submission at the end of your notebook, the score function changes the shape of your submission df by adding a target_id column at the end.  See screenshot below:</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11924794%2Fd5149988ff0553897abd8cd1094186f6%2Ftm_score_shape.png?generation=1742048506793862&amp;alt=media\" alt=\"\"></p>\n<p>Recommend using submission.copy().  Thanks to <a href=\"https://www.kaggle.com/jaejohn\" target=\"_blank\">@jaejohn</a> for posting his <a href=\"https://www.kaggle.com/code/jaejohn/rna-3d-folding-evaluation\" target=\"_blank\">RNA 3D Folding: Evaluation</a> nb from which this screenshot was taken!</p>",
      "rawMarkdown": "Not sure if others have come across this yet, but in case you score your submission at the end of your notebook, the score function changes the shape of your submission df by adding a target_id column at the end.  See screenshot below:\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11924794%2Fd5149988ff0553897abd8cd1094186f6%2Ftm_score_shape.png?generation=1742048506793862&alt=media)\n\nRecommend using submission.copy().  Thanks to @jaejohn for posting his [RNA 3D Folding: Evaluation](https://www.kaggle.com/code/jaejohn/rna-3d-folding-evaluation) nb from which this screenshot was taken!",
      "votes": null
    },
    {
      "id": "3150552",
      "postDate": "03/15/2025 15:58:55",
      "content": "<p><code>score()</code> is indeed modifying it. </p>\n<p>i’ve updated my notebook, thanks for pointing it out!</p>",
      "rawMarkdown": "`score()` is indeed modifying it. \n\ni’ve updated my notebook, thanks for pointing it out!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3150552,
      "author_name": "jaejohn",
      "author_url": "",
      "post_date": "03/15/2025 15:58:55",
      "content": "<p><code>score()</code> is indeed modifying it. </p>\n<p>i’ve updated my notebook, thanks for pointing it out!</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3150465": "Not sure if others have come across this yet, but in case you score your submission at the end of your notebook, the score function changes the shape of your submission df by adding a target_id column at the end.  See screenshot below:\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11924794%2Fd5149988ff0553897abd8cd1094186f6%2Ftm_score_shape.png?generation=1742048506793862&alt=media)\n\nRecommend using submission.copy().  Thanks to @jaejohn for posting his [RNA 3D Folding: Evaluation](https://www.kaggle.com/code/jaejohn/rna-3d-folding-evaluation) nb from which this screenshot was taken!",
    "3150552": "`score()` is indeed modifying it. \n\ni’ve updated my notebook, thanks for pointing it out!"
  },
  "source": "meta"
}