{
  "id": 369109,
  "title": "📊 EDA + training a fast.ai model + submission 🚀",
  "url": "/competitions/rsna-breast-cancer-detection/discussion/369109",
  "author_name": "Radek Osmulski",
  "post_date": "2022-11-29T01:23:50.156000",
  "votes": 13,
  "comment_count": 3,
  "views": 0,
  "content": "<p>Hey!</p>\n<p>Really excited about this competition! 🙂</p>\n<p>To get us up and running quickly I put together this EDA:</p>\n<p><a href=\"https://www.kaggle.com/code/radek1/initial-eda-a-first-look-at-the-data\" target=\"_blank\">📊 EDA + training a fast.ai model + submission 🚀</a></p>\n<p>In it, I cover:</p>\n<ol>\n<li>How the data is organized.</li>\n<li>What data do we have available (a quick glance at the metadata, overview of the DICOM format).</li>\n<li>The competition metric.</li>\n<li>Label distribution in the train set.</li>\n<li>Training a fast.ai model</li>\n<li>Making a submission.</li>\n</ol>\n<p>Hope you find it useful! 🙂 If you do, would appreciate an upvote! 🙌 Best of luck with the challenge!</p>",
  "messages": [
    {
      "id": 2047709,
      "postDate": "2022-11-29T01:23:50.157Z",
      "content": "<p>Hey!</p>\n<p>Really excited about this competition! 🙂</p>\n<p>To get us up and running quickly I put together this EDA:</p>\n<p><a href=\"https://www.kaggle.com/code/radek1/initial-eda-a-first-look-at-the-data\" target=\"_blank\">📊 EDA + training a fast.ai model + submission 🚀</a></p>\n<p>In it, I cover:</p>\n<ol>\n<li>How the data is organized.</li>\n<li>What data do we have available (a quick glance at the metadata, overview of the DICOM format).</li>\n<li>The competition metric.</li>\n<li>Label distribution in the train set.</li>\n<li>Training a fast.ai model</li>\n<li>Making a submission.</li>\n</ol>\n<p>Hope you find it useful! 🙂 If you do, would appreciate an upvote! 🙌 Best of luck with the challenge!</p>",
      "rawMarkdown": "Hey!\n\nReally excited about this competition! 🙂\n\nTo get us up and running quickly I put together this EDA:\n\n[📊 EDA + training a fast.ai model + submission 🚀](https://www.kaggle.com/code/radek1/initial-eda-a-first-look-at-the-data)\n\nIn it, I cover:\n\n1. How the data is organized.\n2. What data do we have available (a quick glance at the metadata, overview of the DICOM format).\n3. The competition metric.\n4. Label distribution in the train set.\n5. Training a fast.ai model\n6. Making a submission.\n\nHope you find it useful! 🙂 If you do, would appreciate an upvote! 🙌 Best of luck with the challenge!",
      "votes": 13
    },
    {
      "id": 2048485,
      "postDate": "2022-11-29T13:29:37.367Z",
      "content": "<p>Nice work <a href=\"https://www.kaggle.com/radek1\" target=\"_blank\">@radek1</a>! Keep in mind that mammography images are usually MONOCHROME1, which means the pixel intensity is inverted. Add something like this before displaying the images with imshow to make them display properly .. with denser tissue appearing brighter. </p>\n<p><code>pixels = np.max(image.pixel_array) - image.pixel_array</code></p>",
      "rawMarkdown": "Nice work @radek1! Keep in mind that mammography images are usually MONOCHROME1, which means the pixel intensity is inverted. Add something like this before displaying the images with imshow to make them display properly .. with denser tissue appearing brighter. \n\n`pixels = np.max(image.pixel_array) - image.pixel_array`",
      "votes": 3,
      "replies": [
        {
          "id": 2048521,
          "postDate": "2022-11-29T14:09:05.437Z",
          "content": "<p>Thank you, <a href=\"https://www.kaggle.com/davidbroberts\" target=\"_blank\">@davidbroberts</a>! Fixed this now.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F83267%2Fb7e508e002dd691f0acf45fad9b88a40%2Ffix.png?generation=1669730891843894&amp;alt=media\" alt=\"\"></p>\n<p>Also, will keep track of <code>PhotometricInterpretation</code> on dicom files going forward, and transform the image appropriately if need be 🙂</p>\n<p>Thank you for point this out to me!</p>",
          "rawMarkdown": "Thank you, @davidbroberts! Fixed this now.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F83267%2Fb7e508e002dd691f0acf45fad9b88a40%2Ffix.png?generation=1669730891843894&alt=media)\n\nAlso, will keep track of `PhotometricInterpretation` on dicom files going forward, and transform the image appropriately if need be 🙂\n\nThank you for point this out to me!"
        }
      ]
    },
    {
      "id": 2084357,
      "postDate": "2023-01-03T12:39:37.360Z",
      "content": "<p>Very helpful. Thank you <a href=\"https://www.kaggle.com/radek1\" target=\"_blank\">@radek1</a>.</p>\n<p>I see you've focussed on the cancer class. <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369262url\" target=\"_blank\">A Brief Intro to Mammography</a> suggests \"you cannot diagnose cancer on a screening mammogram\". Therefore, shouldn't the class of interest be the BI-RADS score as indicated in \"Our Task\"? </p>",
      "rawMarkdown": "Very helpful. Thank you @radek1.\n\nI see you've focussed on the cancer class. [A Brief Intro to Mammography](https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369262url) suggests \"you cannot diagnose cancer on a screening mammogram\". Therefore, shouldn't the class of interest be the BI-RADS score as indicated in \"Our Task\"? "
    }
  ],
  "comments": [
    {
      "id": 2048485,
      "author_name": "David Roberts",
      "author_url": "",
      "post_date": "2022-11-29T13:29:37.367000",
      "content": "<p>Nice work <a href=\"https://www.kaggle.com/radek1\" target=\"_blank\">@radek1</a>! Keep in mind that mammography images are usually MONOCHROME1, which means the pixel intensity is inverted. Add something like this before displaying the images with imshow to make them display properly .. with denser tissue appearing brighter. </p>\n<p><code>pixels = np.max(image.pixel_array) - image.pixel_array</code></p>",
      "votes": 3,
      "replies": [
        {
          "id": 2048521,
          "author_name": "Radek Osmulski",
          "author_url": "",
          "post_date": "2022-11-29T14:09:05.437000",
          "content": "<p>Thank you, <a href=\"https://www.kaggle.com/davidbroberts\" target=\"_blank\">@davidbroberts</a>! Fixed this now.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F83267%2Fb7e508e002dd691f0acf45fad9b88a40%2Ffix.png?generation=1669730891843894&amp;alt=media\" alt=\"\"></p>\n<p>Also, will keep track of <code>PhotometricInterpretation</code> on dicom files going forward, and transform the image appropriately if need be 🙂</p>\n<p>Thank you for point this out to me!</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2084357,
      "author_name": "Julian Macnamara",
      "author_url": "",
      "post_date": "2023-01-03T12:39:37.360000",
      "content": "<p>Very helpful. Thank you <a href=\"https://www.kaggle.com/radek1\" target=\"_blank\">@radek1</a>.</p>\n<p>I see you've focussed on the cancer class. <a href=\"https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369262url\" target=\"_blank\">A Brief Intro to Mammography</a> suggests \"you cannot diagnose cancer on a screening mammogram\". Therefore, shouldn't the class of interest be the BI-RADS score as indicated in \"Our Task\"? </p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2047709": "Hey!\n\nReally excited about this competition! 🙂\n\nTo get us up and running quickly I put together this EDA:\n\n[📊 EDA + training a fast.ai model + submission 🚀](https://www.kaggle.com/code/radek1/initial-eda-a-first-look-at-the-data)\n\nIn it, I cover:\n\n1. How the data is organized.\n2. What data do we have available (a quick glance at the metadata, overview of the DICOM format).\n3. The competition metric.\n4. Label distribution in the train set.\n5. Training a fast.ai model\n6. Making a submission.\n\nHope you find it useful! 🙂 If you do, would appreciate an upvote! 🙌 Best of luck with the challenge!",
    "2048485": "Nice work @radek1! Keep in mind that mammography images are usually MONOCHROME1, which means the pixel intensity is inverted. Add something like this before displaying the images with imshow to make them display properly .. with denser tissue appearing brighter. \n\n`pixels = np.max(image.pixel_array) - image.pixel_array`",
    "2084357": "Very helpful. Thank you @radek1.\n\nI see you've focussed on the cancer class. [A Brief Intro to Mammography](https://www.kaggle.com/competitions/rsna-breast-cancer-detection/discussion/369262url) suggests \"you cannot diagnose cancer on a screening mammogram\". Therefore, shouldn't the class of interest be the BI-RADS score as indicated in \"Our Task\"? "
  }
}