{
  "id": 202562,
  "title": "Debugging Submission Scoring Error",
  "url": "/competitions/riiid-test-answer-prediction/discussion/202562",
  "author_name": "",
  "post_date": "2020-12-10T19:16:10.649029900Z",
  "votes": 1,
  "comment_count": 7,
  "views": 0,
  "content": "<p>I have QC-ed the output and everything. My notebook generates an output submission file which looks fine. But when I am trying to make a submission, the kernel runs for 9/10 hrs and gives me \"Submission Scoring Error\". I am not able to figure out a way to debug it. Any help is appreciated.</p>",
  "messages": [
    {
      "id": "1108544",
      "postDate": "12/10/2020 19:16:10",
      "content": "<p>I have QC-ed the output and everything. My notebook generates an output submission file which looks fine. But when I am trying to make a submission, the kernel runs for 9/10 hrs and gives me \"Submission Scoring Error\". I am not able to figure out a way to debug it. Any help is appreciated.</p>",
      "rawMarkdown": "I have QC-ed the output and everything. My notebook generates an output submission file which looks fine. But when I am trying to make a submission, the kernel runs for 9/10 hrs and gives me \"Submission Scoring Error\". I am not able to figure out a way to debug it. Any help is appreciated.",
      "votes": null
    },
    {
      "id": "1108586",
      "postDate": "12/10/2020 20:08:21",
      "content": "<p>It seems to be memory problem. If it so try to delete high memory features , one at a time, and retry.Don't forget that the run time is obfuscated </p>",
      "rawMarkdown": "It seems to be memory problem. If it so try to delete high memory features , one at a time, and retry.Don't forget that the run time is obfuscated",
      "votes": null
    },
    {
      "id": "1108614",
      "postDate": "12/10/2020 20:39:26",
      "content": "<p>My normal kernel isn't taking that much to save &amp; commit. Seems pretty weird. Lets see if this step by step thing works. Even I thought of that as the only way of debugging.</p>",
      "rawMarkdown": "My normal kernel isn't taking that much to save & commit. Seems pretty weird. Lets see if this step by step thing works. Even I thought of that as the only way of debugging.",
      "votes": null
    },
    {
      "id": "1108657",
      "postDate": "12/10/2020 21:31:41",
      "content": "<p>Nornal kernel resources have nothing to do with the submission ones.With no logs available only trial and error are on the table.<br>\nFinally ,submission times of 8-9 hours, even derived from obfuscation, must be unacceptable in kaggle competitions</p>",
      "rawMarkdown": "Nornal kernel resources have nothing to do with the submission ones.With no logs available only trial and error are on the table.\nFinally ,submission times of 8-9 hours, even derived from obfuscation, must be unacceptable in kaggle competitions",
      "votes": null
    },
    {
      "id": "1108681",
      "postDate": "12/10/2020 22:37:02",
      "content": "<p>Maybe your code does not account for all cases, then in the testing set, it encounters these cases and leads to some errors (e.g. index out of range error). For example, in my case, I embed a some categorical numbers, say from 0 to 9, then I set nn.Embedding(10, embed_dim). In the training set, all values from that feature range from 0 to 9, but in the testing set, somehow a value of 10 pops up and the code stops running. So, try to clip everything, or make sure that, some values out of the range can not be happened.</p>\n<p>At least, in my case, it works. I hope it helps…</p>",
      "rawMarkdown": "Maybe your code does not account for all cases, then in the testing set, it encounters these cases and leads to some errors (e.g. index out of range error). For example, in my case, I embed a some categorical numbers, say from 0 to 9, then I set nn.Embedding(10, embed_dim). In the training set, all values from that feature range from 0 to 9, but in the testing set, somehow a value of 10 pops up and the code stops running. So, try to clip everything, or make sure that, some values out of the range can not be happened.\n\nAt least, in my case, it works. I hope it helps...",
      "votes": null
    },
    {
      "id": "1108710",
      "postDate": "12/10/2020 23:43:32",
      "content": "<p>I use <a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> 's iter_env simulation to double check. It helped me debug several errors in my submission code's feature eng.</p>",
      "rawMarkdown": "I use @its7171 's iter_env simulation to double check. It helped me debug several errors in my submission code's feature eng.",
      "votes": null
    },
    {
      "id": "1109938",
      "postDate": "12/12/2020 08:26:45",
      "content": "<p>Figured out the problem. There was a pd.merging part which was taking lot of time to run, eventually leading to timeout and hence submission file had NaNs</p>",
      "rawMarkdown": "Figured out the problem. There was a pd.merging part which was taking lot of time to run, eventually leading to timeout and hence submission file had NaNs",
      "votes": null
    },
    {
      "id": "1109981",
      "postDate": "12/12/2020 09:19:08",
      "content": "<p>If I can give you an advice is to forget about pandas in this competition for feature creation. It will be slow and memory costly.</p>\n<p>You rather go with a simple \"for\" loop and numpy arrays / dictionnaries 🙂</p>",
      "rawMarkdown": "If I can give you an advice is to forget about pandas in this competition for feature creation. It will be slow and memory costly.\n\nYou rather go with a simple \"for\" loop and numpy arrays / dictionnaries 🙂",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1108586,
      "author_name": "georgem",
      "author_url": "",
      "post_date": "12/10/2020 20:08:21",
      "content": "<p>It seems to be memory problem. If it so try to delete high memory features , one at a time, and retry.Don't forget that the run time is obfuscated </p>",
      "votes": null,
      "replies": [
        {
          "id": 1108614,
          "author_name": "duttadebadri",
          "author_url": "",
          "post_date": "12/10/2020 20:39:26",
          "content": "<p>My normal kernel isn't taking that much to save &amp; commit. Seems pretty weird. Lets see if this step by step thing works. Even I thought of that as the only way of debugging.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1108657,
          "author_name": "georgem",
          "author_url": "",
          "post_date": "12/10/2020 21:31:41",
          "content": "<p>Nornal kernel resources have nothing to do with the submission ones.With no logs available only trial and error are on the table.<br>\nFinally ,submission times of 8-9 hours, even derived from obfuscation, must be unacceptable in kaggle competitions</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1108681,
      "author_name": "shinomoriaoshi",
      "author_url": "",
      "post_date": "12/10/2020 22:37:02",
      "content": "<p>Maybe your code does not account for all cases, then in the testing set, it encounters these cases and leads to some errors (e.g. index out of range error). For example, in my case, I embed a some categorical numbers, say from 0 to 9, then I set nn.Embedding(10, embed_dim). In the training set, all values from that feature range from 0 to 9, but in the testing set, somehow a value of 10 pops up and the code stops running. So, try to clip everything, or make sure that, some values out of the range can not be happened.</p>\n<p>At least, in my case, it works. I hope it helps…</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1108710,
      "author_name": "scaomath",
      "author_url": "",
      "post_date": "12/10/2020 23:43:32",
      "content": "<p>I use <a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> 's iter_env simulation to double check. It helped me debug several errors in my submission code's feature eng.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1109938,
      "author_name": "duttadebadri",
      "author_url": "",
      "post_date": "12/12/2020 08:26:45",
      "content": "<p>Figured out the problem. There was a pd.merging part which was taking lot of time to run, eventually leading to timeout and hence submission file had NaNs</p>",
      "votes": null,
      "replies": [
        {
          "id": 1109981,
          "author_name": "bowaka",
          "author_url": "",
          "post_date": "12/12/2020 09:19:08",
          "content": "<p>If I can give you an advice is to forget about pandas in this competition for feature creation. It will be slow and memory costly.</p>\n<p>You rather go with a simple \"for\" loop and numpy arrays / dictionnaries 🙂</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1108544": "I have QC-ed the output and everything. My notebook generates an output submission file which looks fine. But when I am trying to make a submission, the kernel runs for 9/10 hrs and gives me \"Submission Scoring Error\". I am not able to figure out a way to debug it. Any help is appreciated.",
    "1108586": "It seems to be memory problem. If it so try to delete high memory features , one at a time, and retry.Don't forget that the run time is obfuscated",
    "1108614": "My normal kernel isn't taking that much to save & commit. Seems pretty weird. Lets see if this step by step thing works. Even I thought of that as the only way of debugging.",
    "1108657": "Nornal kernel resources have nothing to do with the submission ones.With no logs available only trial and error are on the table.\nFinally ,submission times of 8-9 hours, even derived from obfuscation, must be unacceptable in kaggle competitions",
    "1108681": "Maybe your code does not account for all cases, then in the testing set, it encounters these cases and leads to some errors (e.g. index out of range error). For example, in my case, I embed a some categorical numbers, say from 0 to 9, then I set nn.Embedding(10, embed_dim). In the training set, all values from that feature range from 0 to 9, but in the testing set, somehow a value of 10 pops up and the code stops running. So, try to clip everything, or make sure that, some values out of the range can not be happened.\n\nAt least, in my case, it works. I hope it helps...",
    "1108710": "I use @its7171 's iter_env simulation to double check. It helped me debug several errors in my submission code's feature eng.",
    "1109938": "Figured out the problem. There was a pd.merging part which was taking lot of time to run, eventually leading to timeout and hence submission file had NaNs",
    "1109981": "If I can give you an advice is to forget about pandas in this competition for feature creation. It will be slow and memory costly.\n\nYou rather go with a simple \"for\" loop and numpy arrays / dictionnaries 🙂"
  },
  "source": "meta"
}