{
  "id": 151449,
  "title": "Submission Scoring Error",
  "url": "/competitions/prostate-cancer-grade-assessment/discussion/151449",
  "author_name": "Jaideep",
  "post_date": "2020-05-15T14:52:30.854000",
  "votes": 0,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi all\nI overcome range of issue like csv not found and 0 score error. \nFinally m stuck at this error which means Submission file for test was generated succesfully but an error came during scoring. \nWhat might be the issue\n1)Is data type of prediction could be wrong \n2) No of prediction less than total predictions to be made\nNOt sure  please help out..</p>",
  "messages": [
    {
      "id": 849183,
      "postDate": "2020-05-15T14:57:04.747Z",
      "content": "<p>Hi,\nPlease share the screenshot of the error.\nHowever, the issues you discussed could be the reason as well.</p>",
      "rawMarkdown": "Hi,\nPlease share the screenshot of the error.\nHowever, the issues you discussed could be the reason as well.",
      "replies": [
        {
          "id": 849197,
          "postDate": "2020-05-15T15:12:57.620Z",
          "content": "<p>Submission Scoring Error\nError</p>\n\n<p>This is simple one liner..\n         <code>\n</code>\n for \n                 names.append(y)\n                  preds.append(p)</p>\n\n<pre><code>      preds = torch.cat(preds).numpy()\n\n    names = np.concatenate(names)\n    final_preds = OptimizedRounder().predict(preds , coefficients)\n\n    preds=np.concatenate(final_preds)\n    sub_df = pd.DataFrame({'image_id': names, 'isup_grade': preds})\n</code></pre>\n\n<p><code>\n</code></p>",
          "rawMarkdown": "Submission Scoring Error\nError\n\nThis is simple one liner..\n         ```\n         ```\n for \n                 names.append(y)\n                  preds.append(p)\n           \n          preds = torch.cat(preds).numpy()\n        \n        names = np.concatenate(names)\n        final_preds = OptimizedRounder().predict(preds , coefficients)\n \n        preds=np.concatenate(final_preds)\n        sub_df = pd.DataFrame({'image_id': names, 'isup_grade': preds})\n```\n```"
        },
        {
          "id": 849376,
          "postDate": "2020-05-15T17:48:58.663Z",
          "content": "<p>Make sure each column has correct value types and that everything was processed. Make sure filename is correct and that it is saved with only these 2 columns (and no index column)</p>",
          "rawMarkdown": "Make sure each column has correct value types and that everything was processed. Make sure filename is correct and that it is saved with only these 2 columns (and no index column)"
        }
      ]
    },
    {
      "id": 849181,
      "postDate": "2020-05-15T14:55:49.220Z",
      "content": "<p><a href=\"/jaideepvalani\">@jaideepvalani</a> - you may look at <a href=\"https://www.kaggle.com/c/prostate-cancer-grade-assessment/discussion/151427\">this</a></p>",
      "rawMarkdown": "@jaideepvalani - you may look at [this](https://www.kaggle.com/c/prostate-cancer-grade-assessment/discussion/151427)",
      "replies": [
        {
          "id": 881402,
          "postDate": "2020-06-11T02:19:32.367Z",
          "content": "<p><a href=\"/indranilbhattacharya\">@indranilbhattacharya</a> even i got the same issue.\nDid you figured out any solution?</p>",
          "rawMarkdown": "@indranilbhattacharya even i got the same issue.\nDid you figured out any solution?"
        }
      ]
    },
    {
      "id": 849177,
      "postDate": "2020-05-15T14:52:30.853Z",
      "content": "<p>Hi all\nI overcome range of issue like csv not found and 0 score error. \nFinally m stuck at this error which means Submission file for test was generated succesfully but an error came during scoring. \nWhat might be the issue\n1)Is data type of prediction could be wrong \n2) No of prediction less than total predictions to be made\nNOt sure  please help out..</p>",
      "rawMarkdown": "Hi all\nI overcome range of issue like csv not found and 0 score error. \nFinally m stuck at this error which means Submission file for test was generated succesfully but an error came during scoring. \nWhat might be the issue\n1)Is data type of prediction could be wrong \n2) No of prediction less than total predictions to be made\nNOt sure  please help out..\n"
    }
  ],
  "comments": [
    {
      "id": 849183,
      "author_name": "Rahul Thakur",
      "author_url": "",
      "post_date": "2020-05-15T14:57:04.747000",
      "content": "<p>Hi,\nPlease share the screenshot of the error.\nHowever, the issues you discussed could be the reason as well.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 849197,
          "author_name": "Jaideep",
          "author_url": "",
          "post_date": "2020-05-15T15:12:57.620000",
          "content": "<p>Submission Scoring Error\nError</p>\n\n<p>This is simple one liner..\n         <code>\n</code>\n for \n                 names.append(y)\n                  preds.append(p)</p>\n\n<pre><code>      preds = torch.cat(preds).numpy()\n\n    names = np.concatenate(names)\n    final_preds = OptimizedRounder().predict(preds , coefficients)\n\n    preds=np.concatenate(final_preds)\n    sub_df = pd.DataFrame({'image_id': names, 'isup_grade': preds})\n</code></pre>\n\n<p><code>\n</code></p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 849376,
          "author_name": "Arnaud Roussel",
          "author_url": "",
          "post_date": "2020-05-15T17:48:58.663000",
          "content": "<p>Make sure each column has correct value types and that everything was processed. Make sure filename is correct and that it is saved with only these 2 columns (and no index column)</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 849181,
      "author_name": "Indranil Bhattacharya",
      "author_url": "",
      "post_date": "2020-05-15T14:55:49.220000",
      "content": "<p><a href=\"/jaideepvalani\">@jaideepvalani</a> - you may look at <a href=\"https://www.kaggle.com/c/prostate-cancer-grade-assessment/discussion/151427\">this</a></p>",
      "votes": 0,
      "replies": [
        {
          "id": 881402,
          "author_name": "Shubham Joshi",
          "author_url": "",
          "post_date": "2020-06-11T02:19:32.367000",
          "content": "<p><a href=\"/indranilbhattacharya\">@indranilbhattacharya</a> even i got the same issue.\nDid you figured out any solution?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "849183": "Hi,\nPlease share the screenshot of the error.\nHowever, the issues you discussed could be the reason as well.",
    "849181": "@jaideepvalani - you may look at [this](https://www.kaggle.com/c/prostate-cancer-grade-assessment/discussion/151427)",
    "849177": "Hi all\nI overcome range of issue like csv not found and 0 score error. \nFinally m stuck at this error which means Submission file for test was generated succesfully but an error came during scoring. \nWhat might be the issue\n1)Is data type of prediction could be wrong \n2) No of prediction less than total predictions to be made\nNOt sure  please help out..\n"
  }
}