{
  "id": 575846,
  "title": "Which columns to drop for submission?",
  "url": "/competitions/waveform-inversion/discussion/575846",
  "author_name": "",
  "post_date": "2025-05-01T07:23:30.536874200Z",
  "votes": 5,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi,</p>\n<p>Just to make sure: If <code>vel</code> is the <code>(1,70,70)</code> velocity field, then we should submit <code>vel[0, :, ::2]</code>? I.e. retain the depth dimension completely and skip every second lateral value?</p>",
  "messages": [
    {
      "id": "3190932",
      "postDate": "05/01/2025 07:23:30",
      "content": "<p>Hi,</p>\n<p>Just to make sure: If <code>vel</code> is the <code>(1,70,70)</code> velocity field, then we should submit <code>vel[0, :, ::2]</code>? I.e. retain the depth dimension completely and skip every second lateral value?</p>",
      "rawMarkdown": "Hi,\n\nJust to make sure: If `vel` is the `(1,70,70)` velocity field, then we should submit `vel[0, :, ::2]`? I.e. retain the depth dimension completely and skip every second lateral value?",
      "votes": null
    },
    {
      "id": "3191136",
      "postDate": "05/01/2025 12:56:17",
      "content": "<p>Per the competition data section: </p>\n<blockquote>\n  <p>A sample submission file in the correct format. The submission format is a stack of the 2D predictions, with every row (y values) included, but only the odd-valued columns (x values).</p>\n</blockquote>\n<p>Suppose your tensor has shape <code>(bs, 1, 70, 70)</code>, where the spatial dimension (70, 70) represents height and width respectively, or (y, x) in the Cartesian plan. Only odd x values will be evaluated, i.e., the following slices: <code>(bs, 70, 1)</code>, <code>(bs, 70, 3)</code>,  <code>(bs, 70, 5)</code>,  etc, which should be obtained by <code>vel[:, 0, :, 1::2]</code>.</p>",
      "rawMarkdown": "Per the competition data section: \n> A sample submission file in the correct format. The submission format is a stack of the 2D predictions, with every row (y values) included, but only the odd-valued columns (x values).\n\nSuppose your tensor has shape `(bs, 1, 70, 70)`, where the spatial dimension (70, 70) represents height and width respectively, or (y, x) in the Cartesian plan. Only odd x values will be evaluated, i.e., the following slices: `(bs, 70, 1)`, `(bs, 70, 3)`,  `(bs, 70, 5)`,  etc, which should be obtained by `vel[:, 0, :, 1::2]`.",
      "votes": null
    },
    {
      "id": "3191290",
      "postDate": "05/01/2025 16:02:42",
      "content": "<p>For <code>vel</code> shaped <code>(1,70,70)</code> it should be <code>vel[0, :, 1::2]</code> because you skip the first column (the first column name is <code>x_1</code> while the first row in the sample_submission file is <code>000039dca2_y_0</code>, so we know the indexing starts at <code>0</code>). This is in line with what <a href=\"https://www.kaggle.com/vitormeurerbesen\" target=\"_blank\">@vitormeurerbesen</a> wrote.</p>",
      "rawMarkdown": "For `vel` shaped `(1,70,70)` it should be `vel[0, :, 1::2]` because you skip the first column (the first column name is `x_1` while the first row in the sample_submission file is `000039dca2_y_0`, so we know the indexing starts at `0`). This is in line with what @vitormeurerbesen wrote.",
      "votes": null
    },
    {
      "id": "3191489",
      "postDate": "05/01/2025 19:15:27",
      "content": "<p>Thanks a lot for clarifying.</p>",
      "rawMarkdown": "Thanks a lot for clarifying.",
      "votes": null
    },
    {
      "id": "3215031",
      "postDate": "06/01/2025 13:47:58",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/vitormeurerbesen\" target=\"_blank\">@vitormeurerbesen</a> and <a href=\"https://www.kaggle.com/piotrekga\" target=\"_blank\">@piotrekga</a> for providing this critically important clarification.</p>\n<blockquote>\n  <p>Only the odd position values of x_ (columns) should be submitted… All y_ positions (rows) must be predicted, with the predictions of each oid stacked onto each other.</p>\n</blockquote>\n<p>I want to humbly suggest Kaggle: Please do not (solely) use the words \"row\", \"column\", \"x\", \"y\", \"odd\", and \"even\" when making dimensional indexing descriptions such as this one.  It's very, very ambiguous.</p>\n<p>\"x\" and \"y\": Mathematicians use (x, y), Matlab 2D matrix indexing uses (y, x), Matlab <code>meshgrid</code> function uses (x, y), etc., etc.  Different people have different conventions.  Your x could be my y.  Totally ambiguous.</p>\n<p>\"Row\" and \"column\": If we take \"row\" to mean the first dimension (which is already an ambiguous term), then if you store things \"row\"-major, your row could be my column.  If you talk about the dual solution while I'm referring to the primal solution, your column could be my row.  Etc., etc.  Totally ambiguous.</p>\n<p>\"Odd\" and \"even\": If a tensor has shape (5, 70, 80), is size 70 at an odd or even index?  It's even because it's at the <em>second</em> index, after 5.  It's odd because with 0-based indexing, first is 0-th and second is <em>1</em>-st, and 1 is odd.  Totally ambiguous.</p>\n<p>I suggest what <a href=\"https://www.kaggle.com/vitormeurerbesen\" target=\"_blank\">@vitormeurerbesen</a> and <a href=\"https://www.kaggle.com/piotrekga\" target=\"_blank\">@piotrekga</a> did: spit out exactly what is intended: <code>vel[:, 0, :, 1::2]</code> with some light human language describing your intention, if desired.</p>\n<p>P.S. Just for reference, in Matlab or GNU Octave, <code>vel[:, 0, :, 1::2]</code> is <code>vel(:, 1, :, 2:2:end)</code></p>\n<p>P.S. Please don't overlook the issue of human language ambiguity.  Some of the worst accidents in human history were <em>solely</em> caused by it.</p>",
      "rawMarkdown": "Thank you @vitormeurerbesen and @piotrekga for providing this critically important clarification.\n\n>Only the odd position values of x_ (columns) should be submitted... All y_ positions (rows) must be predicted, with the predictions of each oid stacked onto each other.\n\nI want to humbly suggest Kaggle: Please do not (solely) use the words \"row\", \"column\", \"x\", \"y\", \"odd\", and \"even\" when making dimensional indexing descriptions such as this one.  It's very, very ambiguous.\n\n\"x\" and \"y\": Mathematicians use (x, y), Matlab 2D matrix indexing uses (y, x), Matlab `meshgrid` function uses (x, y), etc., etc.  Different people have different conventions.  Your x could be my y.  Totally ambiguous.\n\n\"Row\" and \"column\": If we take \"row\" to mean the first dimension (which is already an ambiguous term), then if you store things \"row\"-major, your row could be my column.  If you talk about the dual solution while I'm referring to the primal solution, your column could be my row.  Etc., etc.  Totally ambiguous.\n\n\"Odd\" and \"even\": If a tensor has shape (5, 70, 80), is size 70 at an odd or even index?  It's even because it's at the *second* index, after 5.  It's odd because with 0-based indexing, first is 0-th and second is *1*-st, and 1 is odd.  Totally ambiguous.\n\nI suggest what @vitormeurerbesen and @piotrekga did: spit out exactly what is intended: `vel[:, 0, :, 1::2]` with some light human language describing your intention, if desired.\n\nP.S. Just for reference, in Matlab or GNU Octave, `vel[:, 0, :, 1::2]` is `vel(:, 1, :, 2:2:end)`\n\nP.S. Please don't overlook the issue of human language ambiguity.  Some of the worst accidents in human history were *solely* caused by it.",
      "votes": null
    },
    {
      "id": "3227969",
      "postDate": "06/19/2025 14:00:17",
      "content": "<p>100% with you on this</p>",
      "rawMarkdown": "100% with you on this",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3191136,
      "author_name": "vitormeurerbesen",
      "author_url": "",
      "post_date": "05/01/2025 12:56:17",
      "content": "<p>Per the competition data section: </p>\n<blockquote>\n  <p>A sample submission file in the correct format. The submission format is a stack of the 2D predictions, with every row (y values) included, but only the odd-valued columns (x values).</p>\n</blockquote>\n<p>Suppose your tensor has shape <code>(bs, 1, 70, 70)</code>, where the spatial dimension (70, 70) represents height and width respectively, or (y, x) in the Cartesian plan. Only odd x values will be evaluated, i.e., the following slices: <code>(bs, 70, 1)</code>, <code>(bs, 70, 3)</code>,  <code>(bs, 70, 5)</code>,  etc, which should be obtained by <code>vel[:, 0, :, 1::2]</code>.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 3191290,
      "author_name": "piotrekga",
      "author_url": "",
      "post_date": "05/01/2025 16:02:42",
      "content": "<p>For <code>vel</code> shaped <code>(1,70,70)</code> it should be <code>vel[0, :, 1::2]</code> because you skip the first column (the first column name is <code>x_1</code> while the first row in the sample_submission file is <code>000039dca2_y_0</code>, so we know the indexing starts at <code>0</code>). This is in line with what <a href=\"https://www.kaggle.com/vitormeurerbesen\" target=\"_blank\">@vitormeurerbesen</a> wrote.</p>",
      "votes": null,
      "replies": [
        {
          "id": 3191489,
          "author_name": "hoffmanns",
          "author_url": "",
          "post_date": "05/01/2025 19:15:27",
          "content": "<p>Thanks a lot for clarifying.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 3215031,
      "author_name": "revealer",
      "author_url": "",
      "post_date": "06/01/2025 13:47:58",
      "content": "<p>Thank you <a href=\"https://www.kaggle.com/vitormeurerbesen\" target=\"_blank\">@vitormeurerbesen</a> and <a href=\"https://www.kaggle.com/piotrekga\" target=\"_blank\">@piotrekga</a> for providing this critically important clarification.</p>\n<blockquote>\n  <p>Only the odd position values of x_ (columns) should be submitted… All y_ positions (rows) must be predicted, with the predictions of each oid stacked onto each other.</p>\n</blockquote>\n<p>I want to humbly suggest Kaggle: Please do not (solely) use the words \"row\", \"column\", \"x\", \"y\", \"odd\", and \"even\" when making dimensional indexing descriptions such as this one.  It's very, very ambiguous.</p>\n<p>\"x\" and \"y\": Mathematicians use (x, y), Matlab 2D matrix indexing uses (y, x), Matlab <code>meshgrid</code> function uses (x, y), etc., etc.  Different people have different conventions.  Your x could be my y.  Totally ambiguous.</p>\n<p>\"Row\" and \"column\": If we take \"row\" to mean the first dimension (which is already an ambiguous term), then if you store things \"row\"-major, your row could be my column.  If you talk about the dual solution while I'm referring to the primal solution, your column could be my row.  Etc., etc.  Totally ambiguous.</p>\n<p>\"Odd\" and \"even\": If a tensor has shape (5, 70, 80), is size 70 at an odd or even index?  It's even because it's at the <em>second</em> index, after 5.  It's odd because with 0-based indexing, first is 0-th and second is <em>1</em>-st, and 1 is odd.  Totally ambiguous.</p>\n<p>I suggest what <a href=\"https://www.kaggle.com/vitormeurerbesen\" target=\"_blank\">@vitormeurerbesen</a> and <a href=\"https://www.kaggle.com/piotrekga\" target=\"_blank\">@piotrekga</a> did: spit out exactly what is intended: <code>vel[:, 0, :, 1::2]</code> with some light human language describing your intention, if desired.</p>\n<p>P.S. Just for reference, in Matlab or GNU Octave, <code>vel[:, 0, :, 1::2]</code> is <code>vel(:, 1, :, 2:2:end)</code></p>\n<p>P.S. Please don't overlook the issue of human language ambiguity.  Some of the worst accidents in human history were <em>solely</em> caused by it.</p>",
      "votes": null,
      "replies": [
        {
          "id": 3227969,
          "author_name": "justinwallace234",
          "author_url": "",
          "post_date": "06/19/2025 14:00:17",
          "content": "<p>100% with you on this</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3190932": "Hi,\n\nJust to make sure: If `vel` is the `(1,70,70)` velocity field, then we should submit `vel[0, :, ::2]`? I.e. retain the depth dimension completely and skip every second lateral value?",
    "3191136": "Per the competition data section: \n> A sample submission file in the correct format. The submission format is a stack of the 2D predictions, with every row (y values) included, but only the odd-valued columns (x values).\n\nSuppose your tensor has shape `(bs, 1, 70, 70)`, where the spatial dimension (70, 70) represents height and width respectively, or (y, x) in the Cartesian plan. Only odd x values will be evaluated, i.e., the following slices: `(bs, 70, 1)`, `(bs, 70, 3)`,  `(bs, 70, 5)`,  etc, which should be obtained by `vel[:, 0, :, 1::2]`.",
    "3191290": "For `vel` shaped `(1,70,70)` it should be `vel[0, :, 1::2]` because you skip the first column (the first column name is `x_1` while the first row in the sample_submission file is `000039dca2_y_0`, so we know the indexing starts at `0`). This is in line with what @vitormeurerbesen wrote.",
    "3191489": "Thanks a lot for clarifying.",
    "3215031": "Thank you @vitormeurerbesen and @piotrekga for providing this critically important clarification.\n\n>Only the odd position values of x_ (columns) should be submitted... All y_ positions (rows) must be predicted, with the predictions of each oid stacked onto each other.\n\nI want to humbly suggest Kaggle: Please do not (solely) use the words \"row\", \"column\", \"x\", \"y\", \"odd\", and \"even\" when making dimensional indexing descriptions such as this one.  It's very, very ambiguous.\n\n\"x\" and \"y\": Mathematicians use (x, y), Matlab 2D matrix indexing uses (y, x), Matlab `meshgrid` function uses (x, y), etc., etc.  Different people have different conventions.  Your x could be my y.  Totally ambiguous.\n\n\"Row\" and \"column\": If we take \"row\" to mean the first dimension (which is already an ambiguous term), then if you store things \"row\"-major, your row could be my column.  If you talk about the dual solution while I'm referring to the primal solution, your column could be my row.  Etc., etc.  Totally ambiguous.\n\n\"Odd\" and \"even\": If a tensor has shape (5, 70, 80), is size 70 at an odd or even index?  It's even because it's at the *second* index, after 5.  It's odd because with 0-based indexing, first is 0-th and second is *1*-st, and 1 is odd.  Totally ambiguous.\n\nI suggest what @vitormeurerbesen and @piotrekga did: spit out exactly what is intended: `vel[:, 0, :, 1::2]` with some light human language describing your intention, if desired.\n\nP.S. Just for reference, in Matlab or GNU Octave, `vel[:, 0, :, 1::2]` is `vel(:, 1, :, 2:2:end)`\n\nP.S. Please don't overlook the issue of human language ambiguity.  Some of the worst accidents in human history were *solely* caused by it.",
    "3227969": "100% with you on this"
  },
  "source": "meta"
}