{
  "id": 298588,
  "title": "[solved] Submission Scoring Error - we've tried everything in the other threads",
  "url": "/competitions/tensorflow-great-barrier-reef/discussion/298588",
  "author_name": "hkrsmk",
  "post_date": "2022-01-03T17:27:18.983000",
  "votes": 3,
  "comment_count": 9,
  "views": 0,
  "content": "<p>Hi, our team is really struggling with finding a viable way to submit the solution. This is our current notebook, is anyone able to look over it to provide some suggestions? We have implemented as much as we can from the previous threads to no avail, hence we are starting a new thread.</p>\n<p><a href=\"https://www.kaggle.com/hkrsmk/inference-yolov5-hkrsmk\" target=\"_blank\">https://www.kaggle.com/hkrsmk/inference-yolov5-hkrsmk</a></p>\n<p>Any help would be greatly appreciated.</p>\n<p>Edit - we found the solution: don't output any CSV files manually, let the API do it on its own.</p>",
  "messages": [
    {
      "id": 1637248,
      "postDate": "2022-01-03T17:27:18.983Z",
      "content": "<p>Hi, our team is really struggling with finding a viable way to submit the solution. This is our current notebook, is anyone able to look over it to provide some suggestions? We have implemented as much as we can from the previous threads to no avail, hence we are starting a new thread.</p>\n<p><a href=\"https://www.kaggle.com/hkrsmk/inference-yolov5-hkrsmk\" target=\"_blank\">https://www.kaggle.com/hkrsmk/inference-yolov5-hkrsmk</a></p>\n<p>Any help would be greatly appreciated.</p>\n<p>Edit - we found the solution: don't output any CSV files manually, let the API do it on its own.</p>",
      "rawMarkdown": "Hi, our team is really struggling with finding a viable way to submit the solution. This is our current notebook, is anyone able to look over it to provide some suggestions? We have implemented as much as we can from the previous threads to no avail, hence we are starting a new thread.\n\nhttps://www.kaggle.com/hkrsmk/inference-yolov5-hkrsmk\n\nAny help would be greatly appreciated.\n\nEdit - we found the solution: don't output any CSV files manually, let the API do it on its own.",
      "votes": 3
    },
    {
      "id": 1642062,
      "postDate": "2022-01-08T02:24:22.810Z",
      "content": "<p>Solved the issue - the API generates a submission csv when we run it, we do not need to create a submission csv ourselves elsewhere. So we just remove the <code>df.to_csv</code> part.</p>",
      "rawMarkdown": "Solved the issue - the API generates a submission csv when we run it, we do not need to create a submission csv ourselves elsewhere. So we just remove the `df.to_csv` part.",
      "votes": 2
    },
    {
      "id": 1637714,
      "postDate": "2022-01-04T06:22:56.507Z",
      "content": "<p>I think you are overriding index too, how about just registering prediction instead of index too. have you tried? 😺</p>",
      "rawMarkdown": "I think you are overriding index too, how about just registering prediction instead of index too. have you tried? 😺",
      "replies": [
        {
          "id": 1637848,
          "postDate": "2022-01-04T08:56:05.317Z",
          "content": "<p>You mean <code>submission_dict['index'].append(idc)</code>? We  are adding to a different dictionary for visibility; otherwise, we do not modify <code>sample_prediction_df['index']</code> at all, and we submit the second dataframe for the competition:<br>\n<code>env.predict(sample_prediction_df)</code></p>",
          "rawMarkdown": "You mean `submission_dict['index'].append(idc)`? We  are adding to a different dictionary for visibility; otherwise, we do not modify `sample_prediction_df['index']` at all, and we submit the second dataframe for the competition:\n`env.predict(sample_prediction_df)`"
        },
        {
          "id": 1639321,
          "postDate": "2022-01-05T14:53:53.270Z",
          "content": "<p>I mean that instead of passing the second df, I want you to try only giving predictions as per the competition's evaluation page, without altering the index. I'm thinking that error, might be because of, passing two columns (index, preds) , while it may be expecting only preds columns. if you are still stuck on this error. I want you to try like this ; )</p>",
          "rawMarkdown": "I mean that instead of passing the second df, I want you to try only giving predictions as per the competition's evaluation page, without altering the index. I'm thinking that error, might be because of, passing two columns (index, preds) , while it may be expecting only preds columns. if you are still stuck on this error. I want you to try like this ; )"
        }
      ]
    },
    {
      "id": 1637580,
      "postDate": "2022-01-04T03:26:27.090Z",
      "content": "<p><a href=\"https://www.kaggle.com/addisonhoward\" target=\"_blank\">@addisonhoward</a> Any thoughts, or ways we can contact the organisers for clarification?</p>",
      "rawMarkdown": "@addisonhoward Any thoughts, or ways we can contact the organisers for clarification?",
      "replies": [
        {
          "id": 1637594,
          "postDate": "2022-01-04T03:57:45.027Z",
          "content": "<p>Hi - unfortunately neither we at Kaggle or the host can troubleshoot code that is otherwise working for other teams. If we notice a site-wide error, we can investigate. </p>",
          "rawMarkdown": "Hi - unfortunately neither we at Kaggle or the host can troubleshoot code that is otherwise working for other teams. If we notice a site-wide error, we can investigate. "
        },
        {
          "id": 1637606,
          "postDate": "2022-01-04T04:13:09.207Z",
          "content": "<p>Cool thanks for the quick reply!</p>",
          "rawMarkdown": "Cool thanks for the quick reply!"
        }
      ]
    },
    {
      "id": 1637253,
      "postDate": "2022-01-03T17:34:18.513Z",
      "rawMarkdown": "",
      "isDeleted": true,
      "replies": [
        {
          "id": 1637269,
          "postDate": "2022-01-03T17:53:35.950Z",
          "content": "<p>I saw some teams having submission times of 1h, so maybe not?</p>",
          "rawMarkdown": "I saw some teams having submission times of 1h, so maybe not?"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1642062,
      "author_name": "hkrsmk",
      "author_url": "",
      "post_date": "2022-01-08T02:24:22.810000",
      "content": "<p>Solved the issue - the API generates a submission csv when we run it, we do not need to create a submission csv ourselves elsewhere. So we just remove the <code>df.to_csv</code> part.</p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 1637714,
      "author_name": "Altair Farooque",
      "author_url": "",
      "post_date": "2022-01-04T06:22:56.507000",
      "content": "<p>I think you are overriding index too, how about just registering prediction instead of index too. have you tried? 😺</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1637848,
          "author_name": "hkrsmk",
          "author_url": "",
          "post_date": "2022-01-04T08:56:05.317000",
          "content": "<p>You mean <code>submission_dict['index'].append(idc)</code>? We  are adding to a different dictionary for visibility; otherwise, we do not modify <code>sample_prediction_df['index']</code> at all, and we submit the second dataframe for the competition:<br>\n<code>env.predict(sample_prediction_df)</code></p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1639321,
          "author_name": "Altair Farooque",
          "author_url": "",
          "post_date": "2022-01-05T14:53:53.270000",
          "content": "<p>I mean that instead of passing the second df, I want you to try only giving predictions as per the competition's evaluation page, without altering the index. I'm thinking that error, might be because of, passing two columns (index, preds) , while it may be expecting only preds columns. if you are still stuck on this error. I want you to try like this ; )</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1637580,
      "author_name": "hkrsmk",
      "author_url": "",
      "post_date": "2022-01-04T03:26:27.090000",
      "content": "<p><a href=\"https://www.kaggle.com/addisonhoward\" target=\"_blank\">@addisonhoward</a> Any thoughts, or ways we can contact the organisers for clarification?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1637594,
          "author_name": "Addison Howard",
          "author_url": "",
          "post_date": "2022-01-04T03:57:45.027000",
          "content": "<p>Hi - unfortunately neither we at Kaggle or the host can troubleshoot code that is otherwise working for other teams. If we notice a site-wide error, we can investigate. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1637606,
          "author_name": "hkrsmk",
          "author_url": "",
          "post_date": "2022-01-04T04:13:09.207000",
          "content": "<p>Cool thanks for the quick reply!</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1637253,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-01-03T17:34:18.513000",
      "content": "",
      "votes": 0,
      "replies": [
        {
          "id": 1637269,
          "author_name": "hkrsmk",
          "author_url": "",
          "post_date": "2022-01-03T17:53:35.950000",
          "content": "<p>I saw some teams having submission times of 1h, so maybe not?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1637248": "Hi, our team is really struggling with finding a viable way to submit the solution. This is our current notebook, is anyone able to look over it to provide some suggestions? We have implemented as much as we can from the previous threads to no avail, hence we are starting a new thread.\n\nhttps://www.kaggle.com/hkrsmk/inference-yolov5-hkrsmk\n\nAny help would be greatly appreciated.\n\nEdit - we found the solution: don't output any CSV files manually, let the API do it on its own.",
    "1642062": "Solved the issue - the API generates a submission csv when we run it, we do not need to create a submission csv ourselves elsewhere. So we just remove the `df.to_csv` part.",
    "1637714": "I think you are overriding index too, how about just registering prediction instead of index too. have you tried? 😺",
    "1637580": "@addisonhoward Any thoughts, or ways we can contact the organisers for clarification?",
    "1637253": ""
  }
}