{
  "id": 394211,
  "title": "Submission Scoring Error",
  "url": "/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/394211",
  "author_name": "",
  "post_date": "2023-03-12T15:43:13.305000",
  "votes": 9,
  "comment_count": 10,
  "views": 0,
  "content": "<p>Hey all. I noticed that my most recent submission is throwing an error - \"Submission Scoring Error.\" Does anyone know the cause of this, or how to correct it?</p>",
  "messages": [
    {
      "id": 2178662,
      "postDate": "2023-03-12T15:43:13.307Z",
      "content": "<p>Hey all. I noticed that my most recent submission is throwing an error - \"Submission Scoring Error.\" Does anyone know the cause of this, or how to correct it?</p>",
      "rawMarkdown": "Hey all. I noticed that my most recent submission is throwing an error - \"Submission Scoring Error.\" Does anyone know the cause of this, or how to correct it?",
      "votes": 8
    },
    {
      "id": 2183642,
      "postDate": "2023-03-15T19:46:04.843Z",
      "content": "<p>I've updated to metric to fix this issue. Updates here: <a href=\"https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/395073\" target=\"_blank\">https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/395073</a></p>",
      "rawMarkdown": "I've updated to metric to fix this issue. Updates here: https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/395073",
      "votes": 1,
      "replies": [
        {
          "id": 2188219,
          "postDate": "2023-03-19T12:11:20.857Z",
          "rawMarkdown": "",
          "isDeleted": true
        }
      ]
    },
    {
      "id": 2178675,
      "postDate": "2023-03-12T16:00:52.177Z",
      "content": "<p>I also the same error</p>\n<p>\"Submission Scoring Error\"</p>\n<blockquote>\n  <p>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. See more debugging tips</p>\n</blockquote>\n<p>~~~~<br>\nSoved：by <strong>np.round(pred,3)</strong></p>",
      "rawMarkdown": "I also the same error\n\n\"Submission Scoring Error\"\n\n\n>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. See more debugging tips\n\n~~~~\nSoved：by **np.round(pred,3)**",
      "votes": 1
    },
    {
      "id": 2179805,
      "postDate": "2023-03-13T12:32:41.643Z",
      "content": "<p>I had this issue before I rounded the predictions to a few significant digits. I assumed that the scoring engine has an issue with interpreting scientific notation of small numbers - and this is how pandas saves them. I didn't verify that assumption, though.</p>\n<p>Try np.round(y_pred, 4) and see what happens.</p>",
      "rawMarkdown": "I had this issue before I rounded the predictions to a few significant digits. I assumed that the scoring engine has an issue with interpreting scientific notation of small numbers - and this is how pandas saves them. I didn't verify that assumption, though.\n\nTry np.round(y_pred, 4) and see what happens.",
      "votes": 2,
      "replies": [
        {
          "id": 2179960,
          "postDate": "2023-03-13T13:53:06.053Z",
          "content": "<p>I had similar issue. Rounding to 3 decimals worked for me. Submiting raw probs gives me \"Submission Scoring Error\".</p>",
          "rawMarkdown": "I had similar issue. Rounding to 3 decimals worked for me. Submiting raw probs gives me \"Submission Scoring Error\"."
        },
        {
          "id": 2180546,
          "postDate": "2023-03-13T22:54:08.707Z",
          "content": "<p>It also seems there's a hard limit on the output values. I am guessing it's beyond (0,1) but there's a limit. have to verify this.</p>\n<p><a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a> any guidelines on this?</p>",
          "rawMarkdown": "It also seems there's a hard limit on the output values. I am guessing it's beyond (0,1) but there's a limit. have to verify this.\n\n@ryanholbrook any guidelines on this?",
          "votes": 1,
          "replies": [
            {
              "id": 2180915,
              "postDate": "2023-03-14T07:14:16.347Z",
              "content": "<p>My experiments show that you can do <code>np.round(Y_pred * 10000, 4)</code> - as this keeps the number precision higher. Such a solution was accepted and scored for me.</p>\n<p>Anyway - that's a pity we need to do such things, it should work without rounding.</p>",
              "rawMarkdown": "My experiments show that you can do `np.round(Y_pred * 10000, 4)` - as this keeps the number precision higher. Such a solution was accepted and scored for me.\n\nAnyway - that's a pity we need to do such things, it should work without rounding.",
              "votes": 1
            },
            {
              "id": 2181014,
              "postDate": "2023-03-14T08:47:22.460Z",
              "content": "<p>Rounding to 3 worked, rounding to 4 didn't, rounding to 5 and multiplying by 1000 didn't. Don't round first 1000 rows and set everything else to 0.5 worked. </p>\n<p>I think it just doesn't like many unique values</p>",
              "rawMarkdown": "Rounding to 3 worked, rounding to 4 didn't, rounding to 5 and multiplying by 1000 didn't. Don't round first 1000 rows and set everything else to 0.5 worked. \n\nI think it just doesn't like many unique values"
            },
            {
              "id": 2181263,
              "postDate": "2023-03-14T12:32:42Z",
              "content": "<p>Thanks for the heads up. I'll investigate. My guess is it could be an OOM error when the metric has to process a large number of unique values. AP (like AUC) works by ranking confidence scores, so there's less to store with tied ranks.</p>",
              "rawMarkdown": "Thanks for the heads up. I'll investigate. My guess is it could be an OOM error when the metric has to process a large number of unique values. AP (like AUC) works by ranking confidence scores, so there's less to store with tied ranks.",
              "votes": 1
            }
          ]
        }
      ]
    },
    {
      "id": 2188177,
      "postDate": "2023-03-19T11:19:01.437Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2183642,
      "author_name": "Ryan Holbrook",
      "author_url": "",
      "post_date": "2023-03-15T19:46:04.843000",
      "content": "<p>I've updated to metric to fix this issue. Updates here: <a href=\"https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/395073\" target=\"_blank\">https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/395073</a></p>",
      "votes": 1,
      "replies": [
        {
          "id": 2188219,
          "author_name": "",
          "author_url": "",
          "post_date": "2023-03-19T12:11:20.857000",
          "content": "",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2178675,
      "author_name": "yanqiangmiffy",
      "author_url": "",
      "post_date": "2023-03-12T16:00:52.177000",
      "content": "<p>I also the same error</p>\n<p>\"Submission Scoring Error\"</p>\n<blockquote>\n  <p>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. See more debugging tips</p>\n</blockquote>\n<p>~~~~<br>\nSoved：by <strong>np.round(pred,3)</strong></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2179805,
      "author_name": "Tomasz Bartczak",
      "author_url": "",
      "post_date": "2023-03-13T12:32:41.643000",
      "content": "<p>I had this issue before I rounded the predictions to a few significant digits. I assumed that the scoring engine has an issue with interpreting scientific notation of small numbers - and this is how pandas saves them. I didn't verify that assumption, though.</p>\n<p>Try np.round(y_pred, 4) and see what happens.</p>",
      "votes": 2,
      "replies": [
        {
          "id": 2179960,
          "author_name": "Giba",
          "author_url": "",
          "post_date": "2023-03-13T13:53:06.053000",
          "content": "<p>I had similar issue. Rounding to 3 decimals worked for me. Submiting raw probs gives me \"Submission Scoring Error\".</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2180546,
          "author_name": "Mayukh Bhattacharyya",
          "author_url": "",
          "post_date": "2023-03-13T22:54:08.707000",
          "content": "<p>It also seems there's a hard limit on the output values. I am guessing it's beyond (0,1) but there's a limit. have to verify this.</p>\n<p><a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a> any guidelines on this?</p>",
          "votes": 1,
          "replies": [
            {
              "id": 2180915,
              "author_name": "Tomasz Bartczak",
              "author_url": "",
              "post_date": "2023-03-14T07:14:16.347000",
              "content": "<p>My experiments show that you can do <code>np.round(Y_pred * 10000, 4)</code> - as this keeps the number precision higher. Such a solution was accepted and scored for me.</p>\n<p>Anyway - that's a pity we need to do such things, it should work without rounding.</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2181014,
              "author_name": "RD",
              "author_url": "",
              "post_date": "2023-03-14T08:47:22.460000",
              "content": "<p>Rounding to 3 worked, rounding to 4 didn't, rounding to 5 and multiplying by 1000 didn't. Don't round first 1000 rows and set everything else to 0.5 worked. </p>\n<p>I think it just doesn't like many unique values</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2181263,
              "author_name": "Ryan Holbrook",
              "author_url": "",
              "post_date": "2023-03-14T12:32:42",
              "content": "<p>Thanks for the heads up. I'll investigate. My guess is it could be an OOM error when the metric has to process a large number of unique values. AP (like AUC) works by ranking confidence scores, so there's less to store with tied ranks.</p>",
              "votes": 1,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2188177,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-03-19T11:19:01.437000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2178662": "Hey all. I noticed that my most recent submission is throwing an error - \"Submission Scoring Error.\" Does anyone know the cause of this, or how to correct it?",
    "2183642": "I've updated to metric to fix this issue. Updates here: https://www.kaggle.com/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/395073",
    "2178675": "I also the same error\n\n\"Submission Scoring Error\"\n\n\n>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. See more debugging tips\n\n~~~~\nSoved：by **np.round(pred,3)**",
    "2179805": "I had this issue before I rounded the predictions to a few significant digits. I assumed that the scoring engine has an issue with interpreting scientific notation of small numbers - and this is how pandas saves them. I didn't verify that assumption, though.\n\nTry np.round(y_pred, 4) and see what happens.",
    "2188177": ""
  }
}