{
  "id": 543675,
  "title": "18th Place Solution",
  "url": "/competitions/ariel-data-challenge-2024/discussion/543675",
  "author_name": "yu4u",
  "post_date": "2024-11-01T00:31:35.292000",
  "votes": 22,
  "comment_count": 5,
  "views": 0,
  "content": "<h1>18th Place Solution</h1>\n<p>This competition was incredibly engaging, with active discussions, including those initiated by the hosts. I want to express my gratitude to the organizers for providing such a wonderful opportunity.</p>\n<h2>Solution Summary</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2F506a35cc2b50232e33af436c20ae2074%2Fadc2024.png?generation=1730420721666874&amp;alt=media\" alt=\"\"></p>\n<p>My approach is based on <a href=\"https://www.kaggle.com/code/vitalykudelya/neurips-ariel-data-correlation-parallel-scale\" target=\"_blank\">an excellent public notebook</a>. I would like to thank the author of that notebook and the many authors of other notebooks that served as its foundation.</p>\n<p>My solution is a straightforward extension of the public notebook. The main enhancements are as follows:</p>\n<ul>\n<li>I modified the polynomial fitting of the flux averated in frequency direction, which was previously done in two dimensions, to fit a three-dimensional plane, including the frequency direction.</li>\n<li>I adjusted a constant sigma to be estimated individually for each planet.</li>\n</ul>\n<p>Regarding the three-dimensional plane fitting, there are several considerations due to the high noise levels in individual frequency signals:</p>\n<ul>\n<li>Normalize each frequency individually by its average, as signal intensity varies by frequency.</li>\n<li>Use the transit phase calculated at the mean frequency directly.</li>\n<li>Pre-adjust the signals to simulate a depth-free condition using the depth calculated at the mean frequency.</li>\n<li>Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.</li>\n</ul>\n<h2>Does Not Work For Me</h2>\n<p>The signals at frequency indices 180 to 186 were particularly puzzling. Despite having significantly larger errors than other frequencies, using these signals to predict all frequencies with Linear Regression led to an impressive RMSE improvement across many frequency bands (with the best CV score reaching 49 ppm). However, this model performed poorly on the test data, failing to deliver any meaningful results.</p>",
  "messages": [
    {
      "id": 3033254,
      "postDate": "2024-11-01T00:31:35.293Z",
      "content": "<h1>18th Place Solution</h1>\n<p>This competition was incredibly engaging, with active discussions, including those initiated by the hosts. I want to express my gratitude to the organizers for providing such a wonderful opportunity.</p>\n<h2>Solution Summary</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2F506a35cc2b50232e33af436c20ae2074%2Fadc2024.png?generation=1730420721666874&amp;alt=media\" alt=\"\"></p>\n<p>My approach is based on <a href=\"https://www.kaggle.com/code/vitalykudelya/neurips-ariel-data-correlation-parallel-scale\" target=\"_blank\">an excellent public notebook</a>. I would like to thank the author of that notebook and the many authors of other notebooks that served as its foundation.</p>\n<p>My solution is a straightforward extension of the public notebook. The main enhancements are as follows:</p>\n<ul>\n<li>I modified the polynomial fitting of the flux averated in frequency direction, which was previously done in two dimensions, to fit a three-dimensional plane, including the frequency direction.</li>\n<li>I adjusted a constant sigma to be estimated individually for each planet.</li>\n</ul>\n<p>Regarding the three-dimensional plane fitting, there are several considerations due to the high noise levels in individual frequency signals:</p>\n<ul>\n<li>Normalize each frequency individually by its average, as signal intensity varies by frequency.</li>\n<li>Use the transit phase calculated at the mean frequency directly.</li>\n<li>Pre-adjust the signals to simulate a depth-free condition using the depth calculated at the mean frequency.</li>\n<li>Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.</li>\n</ul>\n<h2>Does Not Work For Me</h2>\n<p>The signals at frequency indices 180 to 186 were particularly puzzling. Despite having significantly larger errors than other frequencies, using these signals to predict all frequencies with Linear Regression led to an impressive RMSE improvement across many frequency bands (with the best CV score reaching 49 ppm). However, this model performed poorly on the test data, failing to deliver any meaningful results.</p>",
      "rawMarkdown": "# 18th Place Solution\n\nThis competition was incredibly engaging, with active discussions, including those initiated by the hosts. I want to express my gratitude to the organizers for providing such a wonderful opportunity.\n\n\n## Solution Summary\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2F506a35cc2b50232e33af436c20ae2074%2Fadc2024.png?generation=1730420721666874&alt=media)\n\nMy approach is based on [an excellent public notebook](https://www.kaggle.com/code/vitalykudelya/neurips-ariel-data-correlation-parallel-scale). I would like to thank the author of that notebook and the many authors of other notebooks that served as its foundation.\n\nMy solution is a straightforward extension of the public notebook. The main enhancements are as follows:\n\n- I modified the polynomial fitting of the flux averated in frequency direction, which was previously done in two dimensions, to fit a three-dimensional plane, including the frequency direction.\n- I adjusted a constant sigma to be estimated individually for each planet.\n\n\nRegarding the three-dimensional plane fitting, there are several considerations due to the high noise levels in individual frequency signals:\n\n- Normalize each frequency individually by its average, as signal intensity varies by frequency.\n- Use the transit phase calculated at the mean frequency directly.\n- Pre-adjust the signals to simulate a depth-free condition using the depth calculated at the mean frequency.\n- Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.\n\n## Does Not Work For Me\nThe signals at frequency indices 180 to 186 were particularly puzzling. Despite having significantly larger errors than other frequencies, using these signals to predict all frequencies with Linear Regression led to an impressive RMSE improvement across many frequency bands (with the best CV score reaching 49 ppm). However, this model performed poorly on the test data, failing to deliver any meaningful results.\n",
      "votes": 22
    },
    {
      "id": 3033839,
      "postDate": "2024-11-01T15:03:36.083Z",
      "content": "<p>Congratulations!<br>\nI’m always amazed at your speed of climbing the LB and your wonderful solution!<br>\nI would like to ask you the details of sigma estimation which is mentioned in the following sentence.</p>\n<blockquote>\n  <p>I adjusted a constant sigma to be estimated individually for each planet.</p>\n</blockquote>\n<p>I’m also curious of your source code, so I’ll appreciate it if you publish the notebook of your solution!</p>",
      "rawMarkdown": "Congratulations!\nI’m always amazed at your speed of climbing the LB and your wonderful solution!\nI would like to ask you the details of sigma estimation which is mentioned in the following sentence.\n>I adjusted a constant sigma to be estimated individually for each planet.\n\nI’m also curious of your source code, so I’ll appreciate it if you publish the notebook of your solution!",
      "votes": 1,
      "replies": [
        {
          "id": 3034427,
          "postDate": "2024-11-02T06:07:46.470Z",
          "content": "<p>Thank you for your interest in my solution.<br>\nI used <code>scipy.optimize.curve_fit</code> for 3d fitting, and then used the returned statistical information along with the estimated depth’s min, max, std, mean, etc., as inputs to a RandomForestRegressor to estimate the mean value of sigma.<br>\nSince it was a short-term challenge, the code is quite messy, but I've made the submission notebook public.</p>\n<p><a href=\"https://www.kaggle.com/code/ren4yu/ariel-2024-sub-ensemble\" target=\"_blank\">https://www.kaggle.com/code/ren4yu/ariel-2024-sub-ensemble</a></p>",
          "rawMarkdown": "Thank you for your interest in my solution.\nI used `scipy.optimize.curve_fit` for 3d fitting, and then used the returned statistical information along with the estimated depth’s min, max, std, mean, etc., as inputs to a RandomForestRegressor to estimate the mean value of sigma.\nSince it was a short-term challenge, the code is quite messy, but I've made the submission notebook public.\n\nhttps://www.kaggle.com/code/ren4yu/ariel-2024-sub-ensemble",
          "votes": 1,
          "replies": [
            {
              "id": 3034442,
              "postDate": "2024-11-02T06:32:54.450Z",
              "content": "<p>Thank you very much for the reply!<br>\nI could understand your sigma estimation method well.<br>\nI’ll read the code for my better understanding.</p>",
              "rawMarkdown": "Thank you very much for the reply!\nI could understand your sigma estimation method well.\nI’ll read the code for my better understanding.",
              "votes": 1
            }
          ]
        }
      ]
    },
    {
      "id": 3033576,
      "postDate": "2024-11-01T10:21:02.393Z",
      "content": "<p>Hi, may I ask what do you mean by </p>\n<blockquote>\n  <p>Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.</p>\n</blockquote>",
      "rawMarkdown": "Hi, may I ask what do you mean by \n>Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.",
      "votes": 1,
      "replies": [
        {
          "id": 3034437,
          "postDate": "2024-11-02T06:29:53.967Z",
          "content": "<p>I apologize if the solution is hard to understand as I had to write it in a hurry.<br>\nI created a figure to illustrate what I’m doing more concretely.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2Fcb26a8d08f42632814a32a93695f0215%2F2.png?generation=1730529034790961&amp;alt=media\" alt=\"\"></p>",
          "rawMarkdown": "I apologize if the solution is hard to understand as I had to write it in a hurry.\nI created a figure to illustrate what I’m doing more concretely.\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2Fcb26a8d08f42632814a32a93695f0215%2F2.png?generation=1730529034790961&alt=media)",
          "votes": 1
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 3033839,
      "author_name": "moto",
      "author_url": "",
      "post_date": "2024-11-01T15:03:36.083000",
      "content": "<p>Congratulations!<br>\nI’m always amazed at your speed of climbing the LB and your wonderful solution!<br>\nI would like to ask you the details of sigma estimation which is mentioned in the following sentence.</p>\n<blockquote>\n  <p>I adjusted a constant sigma to be estimated individually for each planet.</p>\n</blockquote>\n<p>I’m also curious of your source code, so I’ll appreciate it if you publish the notebook of your solution!</p>",
      "votes": 1,
      "replies": [
        {
          "id": 3034427,
          "author_name": "yu4u",
          "author_url": "",
          "post_date": "2024-11-02T06:07:46.470000",
          "content": "<p>Thank you for your interest in my solution.<br>\nI used <code>scipy.optimize.curve_fit</code> for 3d fitting, and then used the returned statistical information along with the estimated depth’s min, max, std, mean, etc., as inputs to a RandomForestRegressor to estimate the mean value of sigma.<br>\nSince it was a short-term challenge, the code is quite messy, but I've made the submission notebook public.</p>\n<p><a href=\"https://www.kaggle.com/code/ren4yu/ariel-2024-sub-ensemble\" target=\"_blank\">https://www.kaggle.com/code/ren4yu/ariel-2024-sub-ensemble</a></p>",
          "votes": 1,
          "replies": [
            {
              "id": 3034442,
              "author_name": "moto",
              "author_url": "",
              "post_date": "2024-11-02T06:32:54.450000",
              "content": "<p>Thank you very much for the reply!<br>\nI could understand your sigma estimation method well.<br>\nI’ll read the code for my better understanding.</p>",
              "votes": 1,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 3033576,
      "author_name": "Zhu Siqi",
      "author_url": "",
      "post_date": "2024-11-01T10:21:02.393000",
      "content": "<p>Hi, may I ask what do you mean by </p>\n<blockquote>\n  <p>Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.</p>\n</blockquote>",
      "votes": 1,
      "replies": [
        {
          "id": 3034437,
          "author_name": "yu4u",
          "author_url": "",
          "post_date": "2024-11-02T06:29:53.967000",
          "content": "<p>I apologize if the solution is hard to understand as I had to write it in a hurry.<br>\nI created a figure to illustrate what I’m doing more concretely.</p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2Fcb26a8d08f42632814a32a93695f0215%2F2.png?generation=1730529034790961&amp;alt=media\" alt=\"\"></p>",
          "votes": 1,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3033254": "# 18th Place Solution\n\nThis competition was incredibly engaging, with active discussions, including those initiated by the hosts. I want to express my gratitude to the organizers for providing such a wonderful opportunity.\n\n\n## Solution Summary\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F745525%2F506a35cc2b50232e33af436c20ae2074%2Fadc2024.png?generation=1730420721666874&alt=media)\n\nMy approach is based on [an excellent public notebook](https://www.kaggle.com/code/vitalykudelya/neurips-ariel-data-correlation-parallel-scale). I would like to thank the author of that notebook and the many authors of other notebooks that served as its foundation.\n\nMy solution is a straightforward extension of the public notebook. The main enhancements are as follows:\n\n- I modified the polynomial fitting of the flux averated in frequency direction, which was previously done in two dimensions, to fit a three-dimensional plane, including the frequency direction.\n- I adjusted a constant sigma to be estimated individually for each planet.\n\n\nRegarding the three-dimensional plane fitting, there are several considerations due to the high noise levels in individual frequency signals:\n\n- Normalize each frequency individually by its average, as signal intensity varies by frequency.\n- Use the transit phase calculated at the mean frequency directly.\n- Pre-adjust the signals to simulate a depth-free condition using the depth calculated at the mean frequency.\n- Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals.\n\n## Does Not Work For Me\nThe signals at frequency indices 180 to 186 were particularly puzzling. Despite having significantly larger errors than other frequencies, using these signals to predict all frequencies with Linear Regression led to an impressive RMSE improvement across many frequency bands (with the best CV score reaching 49 ppm). However, this model performed poorly on the test data, failing to deliver any meaningful results.\n",
    "3033839": "Congratulations!\nI’m always amazed at your speed of climbing the LB and your wonderful solution!\nI would like to ask you the details of sigma estimation which is mentioned in the following sentence.\n>I adjusted a constant sigma to be estimated individually for each planet.\n\nI’m also curious of your source code, so I’ll appreciate it if you publish the notebook of your solution!",
    "3033576": "Hi, may I ask what do you mean by \n>Instead of optimizing the depth during three-dimensional plane fitting, normalize flux using the fitted signal and estimate the depth from the ratio of the average flux in transit phase signal to other signals."
  }
}