{
  "id": 203238,
  "title": "submission score error",
  "url": "/competitions/riiid-test-answer-prediction/discussion/203238",
  "author_name": "",
  "post_date": "2020-12-14T10:46:02.088747400Z",
  "votes": null,
  "comment_count": 10,
  "views": 0,
  "content": "<p>Hi! it's my first submission in kaggle competition</p>\n<p>and I got a submission score error</p>\n<p>I don't know what wrong is..</p>\n<p>(It have a all value of test file..)</p>\n<p>please anyone let me know this problem</p>\n<p>I attached my submission file </p>\n<p>Thanks</p>",
  "messages": [
    {
      "id": "1112168",
      "postDate": "12/14/2020 10:46:02",
      "content": "<p>Hi! it's my first submission in kaggle competition</p>\n<p>and I got a submission score error</p>\n<p>I don't know what wrong is..</p>\n<p>(It have a all value of test file..)</p>\n<p>please anyone let me know this problem</p>\n<p>I attached my submission file </p>\n<p>Thanks</p>",
      "rawMarkdown": "Hi! it's my first submission in kaggle competition\n\nand I got a submission score error\n\nI don't know what wrong is..\n\n(It have a all value of test file..)\n\nplease anyone let me know this problem\n\nI attached my submission file \n\nThanks",
      "votes": null
    },
    {
      "id": "1112574",
      "postDate": "12/14/2020 18:14:37",
      "content": "<p>Maybe attach a picture with the error ? At least a log of the error ? Attaching your submission.csv in discussion is not going to get you a submission….</p>",
      "rawMarkdown": "Maybe attach a picture with the error ? At least a log of the error ? Attaching your submission.csv in discussion is not going to get you a submission....",
      "votes": null
    },
    {
      "id": "1112626",
      "postDate": "12/14/2020 18:51:55",
      "content": "<p>No, in this competition, we cannot see the log of the error.</p>",
      "rawMarkdown": "No, in this competition, we cannot see the log of the error.",
      "votes": null
    },
    {
      "id": "1112727",
      "postDate": "12/14/2020 20:48:25",
      "content": "<p>When saving file, try set index = False i.e submission.to_csv(\"submission\", index = False)</p>",
      "rawMarkdown": "When saving file, try set index = False i.e submission.to_csv(\"submission\", index = False)",
      "votes": null
    },
    {
      "id": "1112787",
      "postDate": "12/14/2020 22:18:25",
      "content": "<p>Another post had a good summary of possible errors:</p>\n<p><a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/192124\" target=\"_blank\">https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/192124</a></p>",
      "rawMarkdown": "Another post had a good summary of possible errors:\n\nhttps://www.kaggle.com/c/riiid-test-answer-prediction/discussion/192124",
      "votes": null
    },
    {
      "id": "1113088",
      "postDate": "12/15/2020 07:09:40",
      "content": "<p>actually, my predict section is these photo  posted</p>",
      "rawMarkdown": "actually, my predict section is these photo  posted",
      "votes": null
    },
    {
      "id": "1113094",
      "postDate": "12/15/2020 07:10:58",
      "content": "<p>final of predict section</p>\n<p>thank you</p>",
      "rawMarkdown": "final of predict section\n\nthank you",
      "votes": null
    },
    {
      "id": "1113099",
      "postDate": "12/15/2020 07:14:41",
      "content": "<p>thanks i will check it!</p>",
      "rawMarkdown": "thanks i will check it!",
      "votes": null
    },
    {
      "id": "1113102",
      "postDate": "12/15/2020 07:19:12",
      "content": "<p>thanks</p>\n<p>actually, I tried riiideducation class for submission…</p>\n<p>so, where code could i revise for submission?</p>\n<p>I posted my predict section</p>",
      "rawMarkdown": "thanks\n\nactually, I tried riiideducation class for submission...\n\nso, where code could i revise for submission?\n\nI posted my predict section",
      "votes": null
    },
    {
      "id": "1113110",
      "postDate": "12/15/2020 07:23:02",
      "content": "<p>predict section 2</p>",
      "rawMarkdown": "predict section 2",
      "votes": null
    },
    {
      "id": "1115641",
      "postDate": "12/16/2020 12:39:24",
      "content": "<p>So I am assuming that you can run your test for-loop (in predict_2.JPG) locally but when you submit to the LB you get an error. If so, can you try placing this snippet of code at the very beginning of your testing for-loop:</p>\n<pre><code>test['content_type_id'] = np.random.randint(0, 2, len(test))\ntest['user_id'] = 1111111111\ntest['content_id'] = 222222222\n</code></pre>\n<p>If you now get an error running it locally, then you would be able to see where your issue is. Depending on which line gives the error, you either are getting wrong dataframe shapes when encountering a content_type_id == 1, or you are not taking care of unseen users/contents properly.</p>\n<p>Hope it helps. Good luck</p>",
      "rawMarkdown": "So I am assuming that you can run your test for-loop (in predict_2.JPG) locally but when you submit to the LB you get an error. If so, can you try placing this snippet of code at the very beginning of your testing for-loop:\n\n```\ntest['content_type_id'] = np.random.randint(0, 2, len(test))\ntest['user_id'] = 1111111111\ntest['content_id'] = 222222222\n```\n\nIf you now get an error running it locally, then you would be able to see where your issue is. Depending on which line gives the error, you either are getting wrong dataframe shapes when encountering a content_type_id == 1, or you are not taking care of unseen users/contents properly.\n\nHope it helps. Good luck",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1112574,
      "author_name": "alincijov",
      "author_url": "",
      "post_date": "12/14/2020 18:14:37",
      "content": "<p>Maybe attach a picture with the error ? At least a log of the error ? Attaching your submission.csv in discussion is not going to get you a submission….</p>",
      "votes": null,
      "replies": [
        {
          "id": 1112626,
          "author_name": "mamasinkgs",
          "author_url": "",
          "post_date": "12/14/2020 18:51:55",
          "content": "<p>No, in this competition, we cannot see the log of the error.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1113088,
          "author_name": "juniroc",
          "author_url": "",
          "post_date": "12/15/2020 07:09:40",
          "content": "<p>actually, my predict section is these photo  posted</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1113094,
          "author_name": "juniroc",
          "author_url": "",
          "post_date": "12/15/2020 07:10:58",
          "content": "<p>final of predict section</p>\n<p>thank you</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1115641,
          "author_name": "pinterbagz",
          "author_url": "",
          "post_date": "12/16/2020 12:39:24",
          "content": "<p>So I am assuming that you can run your test for-loop (in predict_2.JPG) locally but when you submit to the LB you get an error. If so, can you try placing this snippet of code at the very beginning of your testing for-loop:</p>\n<pre><code>test['content_type_id'] = np.random.randint(0, 2, len(test))\ntest['user_id'] = 1111111111\ntest['content_id'] = 222222222\n</code></pre>\n<p>If you now get an error running it locally, then you would be able to see where your issue is. Depending on which line gives the error, you either are getting wrong dataframe shapes when encountering a content_type_id == 1, or you are not taking care of unseen users/contents properly.</p>\n<p>Hope it helps. Good luck</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1112727,
      "author_name": "iseesmth",
      "author_url": "",
      "post_date": "12/14/2020 20:48:25",
      "content": "<p>When saving file, try set index = False i.e submission.to_csv(\"submission\", index = False)</p>",
      "votes": null,
      "replies": [
        {
          "id": 1113102,
          "author_name": "juniroc",
          "author_url": "",
          "post_date": "12/15/2020 07:19:12",
          "content": "<p>thanks</p>\n<p>actually, I tried riiideducation class for submission…</p>\n<p>so, where code could i revise for submission?</p>\n<p>I posted my predict section</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1113110,
          "author_name": "juniroc",
          "author_url": "",
          "post_date": "12/15/2020 07:23:02",
          "content": "<p>predict section 2</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1112787,
      "author_name": "dynamic24",
      "author_url": "",
      "post_date": "12/14/2020 22:18:25",
      "content": "<p>Another post had a good summary of possible errors:</p>\n<p><a href=\"https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/192124\" target=\"_blank\">https://www.kaggle.com/c/riiid-test-answer-prediction/discussion/192124</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1113099,
          "author_name": "juniroc",
          "author_url": "",
          "post_date": "12/15/2020 07:14:41",
          "content": "<p>thanks i will check it!</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1112168": "Hi! it's my first submission in kaggle competition\n\nand I got a submission score error\n\nI don't know what wrong is..\n\n(It have a all value of test file..)\n\nplease anyone let me know this problem\n\nI attached my submission file \n\nThanks",
    "1112574": "Maybe attach a picture with the error ? At least a log of the error ? Attaching your submission.csv in discussion is not going to get you a submission....",
    "1112626": "No, in this competition, we cannot see the log of the error.",
    "1112727": "When saving file, try set index = False i.e submission.to_csv(\"submission\", index = False)",
    "1112787": "Another post had a good summary of possible errors:\n\nhttps://www.kaggle.com/c/riiid-test-answer-prediction/discussion/192124",
    "1113088": "actually, my predict section is these photo  posted",
    "1113094": "final of predict section\n\nthank you",
    "1113099": "thanks i will check it!",
    "1113102": "thanks\n\nactually, I tried riiideducation class for submission...\n\nso, where code could i revise for submission?\n\nI posted my predict section",
    "1113110": "predict section 2",
    "1115641": "So I am assuming that you can run your test for-loop (in predict_2.JPG) locally but when you submit to the LB you get an error. If so, can you try placing this snippet of code at the very beginning of your testing for-loop:\n\n```\ntest['content_type_id'] = np.random.randint(0, 2, len(test))\ntest['user_id'] = 1111111111\ntest['content_id'] = 222222222\n```\n\nIf you now get an error running it locally, then you would be able to see where your issue is. Depending on which line gives the error, you either are getting wrong dataframe shapes when encountering a content_type_id == 1, or you are not taking care of unseen users/contents properly.\n\nHope it helps. Good luck"
  },
  "source": "meta"
}