{
  "id": 664001,
  "title": "Score Submission Error - submission file with incorrect format",
  "url": "/competitions/csiro-biomass/discussion/664001",
  "author_name": "",
  "post_date": "2025-12-22T02:43:35.815306200Z",
  "votes": 1,
  "comment_count": 9,
  "views": 0,
  "content": "<p>I’m consistently getting the error “Your notebook generated a submission file with incorrect format” even after validating the submission thoroughly.</p>\n<p>I have verified that:</p>\n<ul>\n<li>The submission has the exact same columns (sample_id, target) as sample_submission.csv</li>\n<li>The row order exactly matches sample_submission.csv</li>\n<li>There are no missing, duplicate, NaN, or infinite values</li>\n<li>Data types are correct (sample_id as string, target as float)</li>\n<li>The CSV is written with standard UTF-8 encoding and no index</li>\n</ul>\n<p>Submission error showing is : Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.</p>",
  "messages": [
    {
      "id": "3380241",
      "postDate": "12/22/2025 02:43:35",
      "content": "<p>I’m consistently getting the error “Your notebook generated a submission file with incorrect format” even after validating the submission thoroughly.</p>\n<p>I have verified that:</p>\n<ul>\n<li>The submission has the exact same columns (sample_id, target) as sample_submission.csv</li>\n<li>The row order exactly matches sample_submission.csv</li>\n<li>There are no missing, duplicate, NaN, or infinite values</li>\n<li>Data types are correct (sample_id as string, target as float)</li>\n<li>The CSV is written with standard UTF-8 encoding and no index</li>\n</ul>\n<p>Submission error showing is : Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.</p>",
      "rawMarkdown": "I’m consistently getting the error “Your notebook generated a submission file with incorrect format” even after validating the submission thoroughly.\n\nI have verified that:\n- The submission has the exact same columns (sample_id, target) as sample_submission.csv\n- The row order exactly matches sample_submission.csv\n- There are no missing, duplicate, NaN, or infinite values\n- Data types are correct (sample_id as string, target as float)\n- The CSV is written with standard UTF-8 encoding and no index\n\nSubmission error showing is : Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.",
      "votes": null
    },
    {
      "id": "3380308",
      "postDate": "12/22/2025 07:17:11",
      "content": "<p>Make you notebook public and share a link here - someone might be able to help.  </p>\n<p>or</p>\n<p>Read all the discussion topics on \"submission' and you might find an answer.<br>\nDid you run the notebook predicting on train rather than test ?  Lots of things can go wrong with more than a single image being predicted - predicting on the train.csv exposes most of those.\nDid your code create the id - I spent many hours before I found I was missing an _ in the id. </p>",
      "rawMarkdown": "Make you notebook public and share a link here - someone might be able to help.  \n\nor\n\nRead all the discussion topics on \"submission' and you might find an answer.  \nDid you run the notebook predicting on train rather than test ?  Lots of things can go wrong with more than a single image being predicted - predicting on the train.csv exposes most of those.\nDid your code create the id - I spent many hours before I found I was missing an _ in the id.",
      "votes": null
    },
    {
      "id": "3380423",
      "postDate": "12/22/2025 12:07:58",
      "content": "<p>This is my code - <a href=\"https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor\" target=\"_blank\">https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor</a></p>\n<p>I had sample_id and target columns. submission.csv file create by running on test folder only.\nThis is the output I had created - <a href=\"https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor/output\" target=\"_blank\">https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor/output</a></p>",
      "rawMarkdown": "This is my code - https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor\n\nI had sample_id and target columns. submission.csv file create by running on test folder only.\nThis is the output I had created - https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor/output",
      "votes": null
    },
    {
      "id": "3380503",
      "postDate": "12/22/2025 13:42:48",
      "content": "<p>you can replace <code>image_dir = \"/kaggle/input/csiro-biomass/train\"</code> for more sample and view submission file if there are any issues</p>\n<p>enforce constrain value &gt; 0 for every rows might help</p>",
      "rawMarkdown": "you can replace `image_dir = \"/kaggle/input/csiro-biomass/train\"` for more sample and view submission file if there are any issues\n\nenforce constrain value > 0 for every rows might help",
      "votes": null
    },
    {
      "id": "3380530",
      "postDate": "12/22/2025 15:16:04",
      "content": "<p>Not sure this is the issue - but for some reason in this competition the sample_submission file does not exist in the private test folder.  Remove this one line.  I am not sure that would be that error message but it is a fatal error and kaggle might not close up things correctly without the submission being saved.</p>\n<p><code>pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')</code></p>\n<p>Your data set is private as is the model so I can't fork and run the notebook predicting on train.csv.  If the sample_submission.csv read error not the issue make them public and will fork and predict the train files.</p>",
      "rawMarkdown": "Not sure this is the issue - but for some reason in this competition the sample_submission file does not exist in the private test folder.  Remove this one line.  I am not sure that would be that error message but it is a fatal error and kaggle might not close up things correctly without the submission being saved.\n\n`pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')`\n\nYour data set is private as is the model so I can't fork and run the notebook predicting on train.csv.  If the sample_submission.csv read error not the issue make them public and will fork and predict the train files.",
      "votes": null
    },
    {
      "id": "3380766",
      "postDate": "12/23/2025 02:00:17",
      "content": "<p>I tried adding constrain value &gt; 0 and removed line <code>pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')</code></p>\n<p>But still same error.</p>\n<p>I had made my dataset public - <a href=\"https://www.kaggle.com/datasets/syedslmn/efficientnet-b0-pth\" target=\"_blank\">https://www.kaggle.com/datasets/syedslmn/efficientnet-b0-pth</a></p>",
      "rawMarkdown": "I tried adding constrain value > 0 and removed line `pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')`\n\nBut still same error.\n\nI had made my dataset public - https://www.kaggle.com/datasets/syedslmn/efficientnet-b0-pth",
      "votes": null
    },
    {
      "id": "3380780",
      "postDate": "12/23/2025 03:28:22",
      "content": "<p>The model is still private - so I cannot fork yet.</p>",
      "rawMarkdown": "The model is still private - so I cannot fork yet.",
      "votes": null
    },
    {
      "id": "3380783",
      "postDate": "12/23/2025 04:03:25",
      "content": "<p>I just removed the model - apparently it's not used.</p>\n<p>Not sure how many times I have mentioned in discussion posts - <a href=\"https://www.kaggle.com/llkh0a\" target=\"_blank\">others</a> have said the same in this post.</p>\n<p>PREDICT ON THE TRAINING FILE</p>\n<p>Its Kaggle 101 to figuring out what submission issues exist.</p>\n<p>I changed this</p>\n<p><code>image_dir = \"/kaggle/input/csiro-biomass/test\"</code></p>\n<p>to this</p>\n<p><code>image_dir = \"/kaggle/input/csiro-biomass/train\"</code></p>\n<p>You should to the same - and than see if you can figure out the error.  The code predicts 357 images as it should - it saves only the last one in the submission file.  </p>\n<p>Good luck - hollar if you can't figure it out.  Hint - Zip is not doing what you think.</p>",
      "rawMarkdown": "I just removed the model - apparently it's not used.\n\nNot sure how many times I have mentioned in discussion posts - [others](https://www.kaggle.com/llkh0a) have said the same in this post.\n\nPREDICT ON THE TRAINING FILE\n\nIts Kaggle 101 to figuring out what submission issues exist.\n\nI changed this\n\n`image_dir = \"/kaggle/input/csiro-biomass/test\"`\n\nto this\n\n`image_dir = \"/kaggle/input/csiro-biomass/train\"`\n\nYou should to the same - and than see if you can figure out the error.  The code predicts 357 images as it should - it saves only the last one in the submission file.  \n\nGood luck - hollar if you can't figure it out.  Hint - Zip is not doing what you think.",
      "votes": null
    },
    {
      "id": "3382110",
      "postDate": "12/26/2025 14:46:34",
      "content": "<p>Atlast worked. Thanks for your inputs. Mistake I did is </p>\n<ul>\n<li>Wrote only final result to submission.csv</li>\n<li>Read the images from test folder directly and calculated targets from it. But have to read test.csv first and then read images based on image-ids given in the csv.</li>\n</ul>\n<p>Now worked. Thanks all. 😀</p>",
      "rawMarkdown": "Atlast worked. Thanks for your inputs. Mistake I did is \n- Wrote only final result to submission.csv\n- Read the images from test folder directly and calculated targets from it. But have to read test.csv first and then read images based on image-ids given in the csv.\n\nNow worked. Thanks all. 😀",
      "votes": null
    },
    {
      "id": "3382275",
      "postDate": "12/27/2025 05:21:10",
      "content": "<p>I got the same score you did - I changed things in a different fashion, but base error is that zip was only reading the 5 labels as you noticed. </p>",
      "rawMarkdown": "I got the same score you did - I changed things in a different fashion, but base error is that zip was only reading the 5 labels as you noticed.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3380308,
      "author_name": "pcjimmmy",
      "author_url": "",
      "post_date": "12/22/2025 07:17:11",
      "content": "<p>Make you notebook public and share a link here - someone might be able to help.  </p>\n<p>or</p>\n<p>Read all the discussion topics on \"submission' and you might find an answer.<br>\nDid you run the notebook predicting on train rather than test ?  Lots of things can go wrong with more than a single image being predicted - predicting on the train.csv exposes most of those.\nDid your code create the id - I spent many hours before I found I was missing an _ in the id. </p>",
      "votes": null,
      "replies": [
        {
          "id": 3380423,
          "author_name": "syedslmn",
          "author_url": "",
          "post_date": "12/22/2025 12:07:58",
          "content": "<p>This is my code - <a href=\"https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor\" target=\"_blank\">https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor</a></p>\n<p>I had sample_id and target columns. submission.csv file create by running on test folder only.\nThis is the output I had created - <a href=\"https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor/output\" target=\"_blank\">https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor/output</a></p>",
          "votes": null,
          "replies": [
            {
              "id": 3380503,
              "author_name": "llkh0a",
              "author_url": "",
              "post_date": "12/22/2025 13:42:48",
              "content": "<p>you can replace <code>image_dir = \"/kaggle/input/csiro-biomass/train\"</code> for more sample and view submission file if there are any issues</p>\n<p>enforce constrain value &gt; 0 for every rows might help</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 3380530,
              "author_name": "pcjimmmy",
              "author_url": "",
              "post_date": "12/22/2025 15:16:04",
              "content": "<p>Not sure this is the issue - but for some reason in this competition the sample_submission file does not exist in the private test folder.  Remove this one line.  I am not sure that would be that error message but it is a fatal error and kaggle might not close up things correctly without the submission being saved.</p>\n<p><code>pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')</code></p>\n<p>Your data set is private as is the model so I can't fork and run the notebook predicting on train.csv.  If the sample_submission.csv read error not the issue make them public and will fork and predict the train files.</p>",
              "votes": null,
              "replies": [
                {
                  "id": 3380766,
                  "author_name": "syedslmn",
                  "author_url": "",
                  "post_date": "12/23/2025 02:00:17",
                  "content": "<p>I tried adding constrain value &gt; 0 and removed line <code>pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')</code></p>\n<p>But still same error.</p>\n<p>I had made my dataset public - <a href=\"https://www.kaggle.com/datasets/syedslmn/efficientnet-b0-pth\" target=\"_blank\">https://www.kaggle.com/datasets/syedslmn/efficientnet-b0-pth</a></p>",
                  "votes": null,
                  "replies": [
                    {
                      "id": 3380780,
                      "author_name": "pcjimmmy",
                      "author_url": "",
                      "post_date": "12/23/2025 03:28:22",
                      "content": "<p>The model is still private - so I cannot fork yet.</p>",
                      "votes": null,
                      "replies": [
                        {
                          "id": 3380783,
                          "author_name": "pcjimmmy",
                          "author_url": "",
                          "post_date": "12/23/2025 04:03:25",
                          "content": "<p>I just removed the model - apparently it's not used.</p>\n<p>Not sure how many times I have mentioned in discussion posts - <a href=\"https://www.kaggle.com/llkh0a\" target=\"_blank\">others</a> have said the same in this post.</p>\n<p>PREDICT ON THE TRAINING FILE</p>\n<p>Its Kaggle 101 to figuring out what submission issues exist.</p>\n<p>I changed this</p>\n<p><code>image_dir = \"/kaggle/input/csiro-biomass/test\"</code></p>\n<p>to this</p>\n<p><code>image_dir = \"/kaggle/input/csiro-biomass/train\"</code></p>\n<p>You should to the same - and than see if you can figure out the error.  The code predicts 357 images as it should - it saves only the last one in the submission file.  </p>\n<p>Good luck - hollar if you can't figure it out.  Hint - Zip is not doing what you think.</p>",
                          "votes": null,
                          "replies": [
                            {
                              "id": 3382110,
                              "author_name": "syedslmn",
                              "author_url": "",
                              "post_date": "12/26/2025 14:46:34",
                              "content": "<p>Atlast worked. Thanks for your inputs. Mistake I did is </p>\n<ul>\n<li>Wrote only final result to submission.csv</li>\n<li>Read the images from test folder directly and calculated targets from it. But have to read test.csv first and then read images based on image-ids given in the csv.</li>\n</ul>\n<p>Now worked. Thanks all. 😀</p>",
                              "votes": null,
                              "replies": [
                                {
                                  "id": 3382275,
                                  "author_name": "pcjimmmy",
                                  "author_url": "",
                                  "post_date": "12/27/2025 05:21:10",
                                  "content": "<p>I got the same score you did - I changed things in a different fashion, but base error is that zip was only reading the 5 labels as you noticed. </p>",
                                  "votes": null,
                                  "replies": []
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3380241": "I’m consistently getting the error “Your notebook generated a submission file with incorrect format” even after validating the submission thoroughly.\n\nI have verified that:\n- The submission has the exact same columns (sample_id, target) as sample_submission.csv\n- The row order exactly matches sample_submission.csv\n- There are no missing, duplicate, NaN, or infinite values\n- Data types are correct (sample_id as string, target as float)\n- The CSV is written with standard UTF-8 encoding and no index\n\nSubmission error showing is : Your notebook generated a submission file with incorrect format. Some examples causing this are: wrong number of rows or columns, empty values, an incorrect data type for a value, or invalid submission values from what is expected.",
    "3380308": "Make you notebook public and share a link here - someone might be able to help.  \n\nor\n\nRead all the discussion topics on \"submission' and you might find an answer.  \nDid you run the notebook predicting on train rather than test ?  Lots of things can go wrong with more than a single image being predicted - predicting on the train.csv exposes most of those.\nDid your code create the id - I spent many hours before I found I was missing an _ in the id.",
    "3380423": "This is my code - https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor\n\nI had sample_id and target columns. submission.csv file create by running on test folder only.\nThis is the output I had created - https://www.kaggle.com/code/syedslmn/biomass-efficientnet-predictor/output",
    "3380503": "you can replace `image_dir = \"/kaggle/input/csiro-biomass/train\"` for more sample and view submission file if there are any issues\n\nenforce constrain value > 0 for every rows might help",
    "3380530": "Not sure this is the issue - but for some reason in this competition the sample_submission file does not exist in the private test folder.  Remove this one line.  I am not sure that would be that error message but it is a fatal error and kaggle might not close up things correctly without the submission being saved.\n\n`pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')`\n\nYour data set is private as is the model so I can't fork and run the notebook predicting on train.csv.  If the sample_submission.csv read error not the issue make them public and will fork and predict the train files.",
    "3380766": "I tried adding constrain value > 0 and removed line `pd.read_csv('/kaggle/input/csiro-biomass/sample_submission.csv')`\n\nBut still same error.\n\nI had made my dataset public - https://www.kaggle.com/datasets/syedslmn/efficientnet-b0-pth",
    "3380780": "The model is still private - so I cannot fork yet.",
    "3380783": "I just removed the model - apparently it's not used.\n\nNot sure how many times I have mentioned in discussion posts - [others](https://www.kaggle.com/llkh0a) have said the same in this post.\n\nPREDICT ON THE TRAINING FILE\n\nIts Kaggle 101 to figuring out what submission issues exist.\n\nI changed this\n\n`image_dir = \"/kaggle/input/csiro-biomass/test\"`\n\nto this\n\n`image_dir = \"/kaggle/input/csiro-biomass/train\"`\n\nYou should to the same - and than see if you can figure out the error.  The code predicts 357 images as it should - it saves only the last one in the submission file.  \n\nGood luck - hollar if you can't figure it out.  Hint - Zip is not doing what you think.",
    "3382110": "Atlast worked. Thanks for your inputs. Mistake I did is \n- Wrote only final result to submission.csv\n- Read the images from test folder directly and calculated targets from it. But have to read test.csv first and then read images based on image-ids given in the csv.\n\nNow worked. Thanks all. 😀",
    "3382275": "I got the same score you did - I changed things in a different fashion, but base error is that zip was only reading the 5 labels as you noticed."
  },
  "source": "meta"
}