{
  "id": 409606,
  "title": "SCORING always fails",
  "url": "/competitions/predict-student-performance-from-game-play/discussion/409606",
  "author_name": "",
  "post_date": "2023-05-11T21:12:25.117322500Z",
  "votes": 4,
  "comment_count": 5,
  "views": 0,
  "content": "<pre><code>  t  (a,b):\n\n        clf = XGBClassifier()\n        clf.load_model()\n\n        mask = sample_submission.session_id..contains()\n        p = clf.predict_proba(test.astype())[:,]\n        sample_submission.loc[mask,] = ((p.item())&gt;)  \n\n    env.predict(sample_submission)\n</code></pre>\n<p><strong>I can generate the submission, but I can't calculate the score.</strong></p>\n<p><em>Notebook Threw Exception\nYour notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips</em></p>",
  "messages": [
    {
      "id": "2255610",
      "postDate": "05/11/2023 21:12:25",
      "content": "<pre><code>  t  (a,b):\n\n        clf = XGBClassifier()\n        clf.load_model()\n\n        mask = sample_submission.session_id..contains()\n        p = clf.predict_proba(test.astype())[:,]\n        sample_submission.loc[mask,] = ((p.item())&gt;)  \n\n    env.predict(sample_submission)\n</code></pre>\n<p><strong>I can generate the submission, but I can't calculate the score.</strong></p>\n<p><em>Notebook Threw Exception\nYour notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips</em></p>",
      "rawMarkdown": "```python\n for t in range(a,b):\n\n        clf = XGBClassifier()\n        clf.load_model(f'/kaggle/input/32gb-train/XGB_question{t}.xgb')\n\n        mask = sample_submission.session_id.str.contains(f'q{t}')\n        p = clf.predict_proba(test.astype('float32'))[:,1]\n        sample_submission.loc[mask,'correct'] = int((p.item())>0.625)  \n                \n    env.predict(sample_submission)\n```\n\n**I can generate the submission, but I can't calculate the score.**\n\n*Notebook Threw Exception\nYour notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips*",
      "votes": null
    },
    {
      "id": "2255611",
      "postDate": "05/11/2023 21:13:35",
      "content": "<p>can someone help me ,please</p>",
      "rawMarkdown": "can someone help me ,please",
      "votes": null
    },
    {
      "id": "2255886",
      "postDate": "05/12/2023 04:40:38",
      "content": "<p>I am getting the same thing. I am not sure if my code is messed up or if the API is messing up!</p>",
      "rawMarkdown": "I am getting the same thing. I am not sure if my code is messed up or if the API is messing up!",
      "votes": null
    },
    {
      "id": "2256109",
      "postDate": "05/12/2023 09:08:04",
      "content": "<p>It seems that your notebook is encountering an unhandled error when calculating the score for your submission. Here are a few debugging tips that might help:</p>\n<p>Check if the format of your submission file is correct. Make sure that the file has the same number of rows as the test set and that the format of the predictions is correct (e.g., probabilities for binary classification, class probabilities for multiclass classification).</p>\n<p>Double-check the evaluation metric used for the competition. Make sure that you are using the correct evaluation metric when calculating the score for your submission.</p>\n<p>Check if your code is running out of memory or taking too long to execute. If your code is running out of memory, try optimizing your code or using a smaller sample of the data. If your code is taking too long to execute, try using a smaller subset of the data or optimizing your code.</p>\n<p>Look at the error message in more detail to see if it provides any additional information about the error. Check the Kaggle forum or contact the competition organizers if you need additional help with debugging the error.</p>",
      "rawMarkdown": "It seems that your notebook is encountering an unhandled error when calculating the score for your submission. Here are a few debugging tips that might help:\n\nCheck if the format of your submission file is correct. Make sure that the file has the same number of rows as the test set and that the format of the predictions is correct (e.g., probabilities for binary classification, class probabilities for multiclass classification).\n\nDouble-check the evaluation metric used for the competition. Make sure that you are using the correct evaluation metric when calculating the score for your submission.\n\nCheck if your code is running out of memory or taking too long to execute. If your code is running out of memory, try optimizing your code or using a smaller sample of the data. If your code is taking too long to execute, try using a smaller subset of the data or optimizing your code.\n\nLook at the error message in more detail to see if it provides any additional information about the error. Check the Kaggle forum or contact the competition organizers if you need additional help with debugging the error.",
      "votes": null
    },
    {
      "id": "2276327",
      "postDate": "05/26/2023 17:56:55",
      "content": "<p>i saw someone said theirs case is reading the test file , maybe u can try ? </p>",
      "rawMarkdown": "i saw someone said theirs case is reading the test file , maybe u can try ?",
      "votes": null
    },
    {
      "id": "2294636",
      "postDate": "06/10/2023 07:41:47",
      "content": "<p>I am getting the same error: Notebook Threw Exception Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips</p>\n<p>Can anyone help me?</p>",
      "rawMarkdown": "I am getting the same error: Notebook Threw Exception Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips\n\nCan anyone help me?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2255611,
      "author_name": "lindongli",
      "author_url": "",
      "post_date": "05/11/2023 21:13:35",
      "content": "<p>can someone help me ,please</p>",
      "votes": null,
      "replies": [
        {
          "id": 2276327,
          "author_name": "johnfjliu",
          "author_url": "",
          "post_date": "05/26/2023 17:56:55",
          "content": "<p>i saw someone said theirs case is reading the test file , maybe u can try ? </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2255886,
      "author_name": "haydenlabrie",
      "author_url": "",
      "post_date": "05/12/2023 04:40:38",
      "content": "<p>I am getting the same thing. I am not sure if my code is messed up or if the API is messing up!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2256109,
      "author_name": "ericka42",
      "author_url": "",
      "post_date": "05/12/2023 09:08:04",
      "content": "<p>It seems that your notebook is encountering an unhandled error when calculating the score for your submission. Here are a few debugging tips that might help:</p>\n<p>Check if the format of your submission file is correct. Make sure that the file has the same number of rows as the test set and that the format of the predictions is correct (e.g., probabilities for binary classification, class probabilities for multiclass classification).</p>\n<p>Double-check the evaluation metric used for the competition. Make sure that you are using the correct evaluation metric when calculating the score for your submission.</p>\n<p>Check if your code is running out of memory or taking too long to execute. If your code is running out of memory, try optimizing your code or using a smaller sample of the data. If your code is taking too long to execute, try using a smaller subset of the data or optimizing your code.</p>\n<p>Look at the error message in more detail to see if it provides any additional information about the error. Check the Kaggle forum or contact the competition organizers if you need additional help with debugging the error.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2294636,
      "author_name": "shivammishra8",
      "author_url": "",
      "post_date": "06/10/2023 07:41:47",
      "content": "<p>I am getting the same error: Notebook Threw Exception Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips</p>\n<p>Can anyone help me?</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2255610": "```python\n for t in range(a,b):\n\n        clf = XGBClassifier()\n        clf.load_model(f'/kaggle/input/32gb-train/XGB_question{t}.xgb')\n\n        mask = sample_submission.session_id.str.contains(f'q{t}')\n        p = clf.predict_proba(test.astype('float32'))[:,1]\n        sample_submission.loc[mask,'correct'] = int((p.item())>0.625)  \n                \n    env.predict(sample_submission)\n```\n\n**I can generate the submission, but I can't calculate the score.**\n\n*Notebook Threw Exception\nYour notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips*",
    "2255611": "can someone help me ,please",
    "2255886": "I am getting the same thing. I am not sure if my code is messed up or if the API is messing up!",
    "2256109": "It seems that your notebook is encountering an unhandled error when calculating the score for your submission. Here are a few debugging tips that might help:\n\nCheck if the format of your submission file is correct. Make sure that the file has the same number of rows as the test set and that the format of the predictions is correct (e.g., probabilities for binary classification, class probabilities for multiclass classification).\n\nDouble-check the evaluation metric used for the competition. Make sure that you are using the correct evaluation metric when calculating the score for your submission.\n\nCheck if your code is running out of memory or taking too long to execute. If your code is running out of memory, try optimizing your code or using a smaller sample of the data. If your code is taking too long to execute, try using a smaller subset of the data or optimizing your code.\n\nLook at the error message in more detail to see if it provides any additional information about the error. Check the Kaggle forum or contact the competition organizers if you need additional help with debugging the error.",
    "2276327": "i saw someone said theirs case is reading the test file , maybe u can try ?",
    "2294636": "I am getting the same error: Notebook Threw Exception Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips\n\nCan anyone help me?"
  },
  "source": "meta"
}