{
  "id": 384016,
  "title": "Why does a successful submission receive a score of 0?",
  "url": "/competitions/rsna-breast-cancer-detection/discussion/384016",
  "author_name": "Julian Macnamara",
  "post_date": "2023-02-06T07:50:51.415000",
  "votes": 1,
  "comment_count": 5,
  "views": 0,
  "content": "<p><a href=\"https://www.kaggle.com/code/julianmacnamara/rsna-breast-cancer-detection-pttoa-v1-1\" target=\"_blank\">This submission</a> completes successfully but receives a score of 0</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fd9cf6acf0f3e06f43df7c55861520e24%2Fkaggle%20submission%2020230206.png?generation=1675669077871602&amp;alt=media\" alt=\"\"></p>\n<p>The confusion matrix derived from the training set</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fe642fa80671eb8905bc543d78ca16955%2Fkaggle%20confusion%20resnet18%2020230205.png?generation=1675669198063362&amp;alt=media\" alt=\"\"></p>\n<p>suggests the F1 score should be reasonable even though the sample is unbalanced</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2F2d295ccb4d64ded7802feaa27a193995%2Fkaggle%20F1%2020230206.png?generation=1675669763172195&amp;alt=media\" alt=\"\"></p>\n<p>Any advice anybody can offer on why this is happening and how to resolve would be much appreciated</p>\n<p>Many thanks</p>\n<p>Julian</p>",
  "messages": [
    {
      "id": 2131875,
      "postDate": "2023-02-06T13:02:20.377Z",
      "content": "<p>I think the problem was that when I created my augmented images, the image names were not being updated correctly so I ended up with a heap of duplicates. I now have a score - albeit a very low one which makes this an even more interesting challenge than I thought originally</p>",
      "rawMarkdown": "I think the problem was that when I created my augmented images, the image names were not being updated correctly so I ended up with a heap of duplicates. I now have a score - albeit a very low one which makes this an even more interesting challenge than I thought originally",
      "votes": 1
    },
    {
      "id": 2131610,
      "postDate": "2023-02-06T08:28:11.110Z",
      "content": "<p>If all the values under the column 'cancer' in the submission.csv file are zero, the score becomes zero. You might have a small bug in your code where it generates the submission csv file?</p>",
      "rawMarkdown": "If all the values under the column 'cancer' in the submission.csv file are zero, the score becomes zero. You might have a small bug in your code where it generates the submission csv file?",
      "votes": 1,
      "replies": [
        {
          "id": 2131866,
          "postDate": "2023-02-06T12:58:34.977Z",
          "content": "<p>Many thanks for the insight<br>\nAll the best<br>\nJulian</p>",
          "rawMarkdown": "Many thanks for the insight\nAll the best\nJulian",
          "votes": 1
        }
      ]
    },
    {
      "id": 2131549,
      "postDate": "2023-02-06T07:50:51.417Z",
      "content": "<p><a href=\"https://www.kaggle.com/code/julianmacnamara/rsna-breast-cancer-detection-pttoa-v1-1\" target=\"_blank\">This submission</a> completes successfully but receives a score of 0</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fd9cf6acf0f3e06f43df7c55861520e24%2Fkaggle%20submission%2020230206.png?generation=1675669077871602&amp;alt=media\" alt=\"\"></p>\n<p>The confusion matrix derived from the training set</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fe642fa80671eb8905bc543d78ca16955%2Fkaggle%20confusion%20resnet18%2020230205.png?generation=1675669198063362&amp;alt=media\" alt=\"\"></p>\n<p>suggests the F1 score should be reasonable even though the sample is unbalanced</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2F2d295ccb4d64ded7802feaa27a193995%2Fkaggle%20F1%2020230206.png?generation=1675669763172195&amp;alt=media\" alt=\"\"></p>\n<p>Any advice anybody can offer on why this is happening and how to resolve would be much appreciated</p>\n<p>Many thanks</p>\n<p>Julian</p>",
      "rawMarkdown": "[This submission](https://www.kaggle.com/code/julianmacnamara/rsna-breast-cancer-detection-pttoa-v1-1) completes successfully but receives a score of 0\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fd9cf6acf0f3e06f43df7c55861520e24%2Fkaggle%20submission%2020230206.png?generation=1675669077871602&alt=media)\n\nThe confusion matrix derived from the training set\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fe642fa80671eb8905bc543d78ca16955%2Fkaggle%20confusion%20resnet18%2020230205.png?generation=1675669198063362&alt=media)\n\nsuggests the F1 score should be reasonable even though the sample is unbalanced\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2F2d295ccb4d64ded7802feaa27a193995%2Fkaggle%20F1%2020230206.png?generation=1675669763172195&alt=media)\n\nAny advice anybody can offer on why this is happening and how to resolve would be much appreciated\n\nMany thanks\n\nJulian",
      "votes": 1
    },
    {
      "id": 2131622,
      "postDate": "2023-02-06T08:35:09.427Z",
      "content": "<p>For me score zero happens when model output has nan’s, try to check your output for nan’s </p>",
      "rawMarkdown": "For me score zero happens when model output has nan’s, try to check your output for nan’s ",
      "replies": [
        {
          "id": 2131864,
          "postDate": "2023-02-06T12:57:37.697Z",
          "content": "<p>Many thanks for the suggestion<br>\nAll the best<br>\nJulian</p>",
          "rawMarkdown": "Many thanks for the suggestion\nAll the best\nJulian"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2131875,
      "author_name": "Julian Macnamara",
      "author_url": "",
      "post_date": "2023-02-06T13:02:20.377000",
      "content": "<p>I think the problem was that when I created my augmented images, the image names were not being updated correctly so I ended up with a heap of duplicates. I now have a score - albeit a very low one which makes this an even more interesting challenge than I thought originally</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2131610,
      "author_name": "Rasoul Mojtahedzadeh",
      "author_url": "",
      "post_date": "2023-02-06T08:28:11.110000",
      "content": "<p>If all the values under the column 'cancer' in the submission.csv file are zero, the score becomes zero. You might have a small bug in your code where it generates the submission csv file?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2131866,
          "author_name": "Julian Macnamara",
          "author_url": "",
          "post_date": "2023-02-06T12:58:34.977000",
          "content": "<p>Many thanks for the insight<br>\nAll the best<br>\nJulian</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 2131622,
      "author_name": "A.P.",
      "author_url": "",
      "post_date": "2023-02-06T08:35:09.427000",
      "content": "<p>For me score zero happens when model output has nan’s, try to check your output for nan’s </p>",
      "votes": 0,
      "replies": [
        {
          "id": 2131864,
          "author_name": "Julian Macnamara",
          "author_url": "",
          "post_date": "2023-02-06T12:57:37.697000",
          "content": "<p>Many thanks for the suggestion<br>\nAll the best<br>\nJulian</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2131875": "I think the problem was that when I created my augmented images, the image names were not being updated correctly so I ended up with a heap of duplicates. I now have a score - albeit a very low one which makes this an even more interesting challenge than I thought originally",
    "2131610": "If all the values under the column 'cancer' in the submission.csv file are zero, the score becomes zero. You might have a small bug in your code where it generates the submission csv file?",
    "2131549": "[This submission](https://www.kaggle.com/code/julianmacnamara/rsna-breast-cancer-detection-pttoa-v1-1) completes successfully but receives a score of 0\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fd9cf6acf0f3e06f43df7c55861520e24%2Fkaggle%20submission%2020230206.png?generation=1675669077871602&alt=media)\n\nThe confusion matrix derived from the training set\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2Fe642fa80671eb8905bc543d78ca16955%2Fkaggle%20confusion%20resnet18%2020230205.png?generation=1675669198063362&alt=media)\n\nsuggests the F1 score should be reasonable even though the sample is unbalanced\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F5387387%2F2d295ccb4d64ded7802feaa27a193995%2Fkaggle%20F1%2020230206.png?generation=1675669763172195&alt=media)\n\nAny advice anybody can offer on why this is happening and how to resolve would be much appreciated\n\nMany thanks\n\nJulian",
    "2131622": "For me score zero happens when model output has nan’s, try to check your output for nan’s "
  }
}