{
  "id": 120587,
  "title": "Submission error",
  "url": "/competitions/Kannada-MNIST/discussion/120587",
  "author_name": "",
  "post_date": "2019-12-07T07:36:21.465841700Z",
  "votes": null,
  "comment_count": 6,
  "views": 0,
  "content": "<p>I tried this: <a href=\"https://www.kaggle.com/marcthalen/mnist-cnn-99-top-30-using-keras/data\">https://www.kaggle.com/marcthalen/mnist-cnn-99-top-30-using-keras/data</a> ,\nand I tried this: <a href=\"https://www.kaggle.com/c/Kannada-MNIST/discussion/110586\">https://www.kaggle.com/c/Kannada-MNIST/discussion/110586</a> , \nand this: <a href=\"https://www.kaggle.com/c/Kannada-MNIST/discussion/114937#latest-667213\">https://www.kaggle.com/c/Kannada-MNIST/discussion/114937#latest-667213</a> .\nAll of them could not help me solve the problem. My submission says \"Submission Scoring Error\", even my submission.csv is the same to sample_submission.csv. Need Help!!!</p>",
  "messages": [
    {
      "id": "689626",
      "postDate": "12/07/2019 07:36:21",
      "content": "<p>I tried this: <a href=\"https://www.kaggle.com/marcthalen/mnist-cnn-99-top-30-using-keras/data\">https://www.kaggle.com/marcthalen/mnist-cnn-99-top-30-using-keras/data</a> ,\nand I tried this: <a href=\"https://www.kaggle.com/c/Kannada-MNIST/discussion/110586\">https://www.kaggle.com/c/Kannada-MNIST/discussion/110586</a> , \nand this: <a href=\"https://www.kaggle.com/c/Kannada-MNIST/discussion/114937#latest-667213\">https://www.kaggle.com/c/Kannada-MNIST/discussion/114937#latest-667213</a> .\nAll of them could not help me solve the problem. My submission says \"Submission Scoring Error\", even my submission.csv is the same to sample_submission.csv. Need Help!!!</p>",
      "rawMarkdown": "I tried this: https://www.kaggle.com/marcthalen/mnist-cnn-99-top-30-using-keras/data ,\nand I tried this: https://www.kaggle.com/c/Kannada-MNIST/discussion/110586 , \nand this: https://www.kaggle.com/c/Kannada-MNIST/discussion/114937#latest-667213 .\nAll of them could not help me solve the problem. My submission says \"Submission Scoring Error\", even my submission.csv is the same to sample_submission.csv. Need Help!!!",
      "votes": null
    },
    {
      "id": "691394",
      "postDate": "12/10/2019 04:58:05",
      "content": "<p>set index=False\nuse small letters in id and label\nfile name should be submission.csv</p>\n\n<p>if it doesn't works reply me</p>",
      "rawMarkdown": "set index=False\nuse small letters in id and label\nfile name should be submission.csv\n\nif it doesn't works reply me",
      "votes": null
    },
    {
      "id": "692081",
      "postDate": "12/10/2019 20:58:45",
      "content": "<p>Error not resolved !</p>\n\n<p>I tried this:-</p>\n\n<p>ypred=model.predict(xtest)\nsubmission=pd.read_csv(os.path.join(dirname,'sample_submission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)</p>\n\n<p>and this too  ( not label in sample_submission )but still the error persists</p>\n\n<p>ypred = model.predict_classes(xtest)\nid_col = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': id_col, 'label': ypred})\nsubmission.to_csv('submission.csv', index = False)</p>",
      "rawMarkdown": "Error not resolved !\n\nI tried this:-\n\nypred=model.predict(xtest)\nsubmission=pd.read_csv(os.path.join(dirname,'sample_submission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)\n\nand this too  ( not label in sample_submission )but still the error persists\n\nypred = model.predict_classes(xtest)\nid_col = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': id_col, 'label': ypred})\nsubmission.to_csv('submission.csv', index = False)",
      "votes": null
    },
    {
      "id": "692088",
      "postDate": "12/10/2019 21:11:36",
      "content": "<p>Error not resolved !</p>\n\n<p>I tried this:-</p>\n\n<p>ypred=model.predict(xtest)\nsubmission=pd.readcsv(os.path.join(dirname,'samplesubmission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)</p>\n\n<p>and this too ( not label in sample_submission )but still the error persists</p>\n\n<p>ypred = model.predictclasses(xtest) idcol = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': idcol, 'label': ypred}) submission.tocsv('submission.csv', index = False)</p>",
      "rawMarkdown": "Error not resolved !\n\nI tried this:-\n\nypred=model.predict(xtest)\nsubmission=pd.readcsv(os.path.join(dirname,'samplesubmission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)\n\nand this too ( not label in sample_submission )but still the error persists\n\nypred = model.predictclasses(xtest) idcol = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': idcol, 'label': ypred}) submission.tocsv('submission.csv', index = False)",
      "votes": null
    },
    {
      "id": "692550",
      "postDate": "12/11/2019 12:36:22",
      "content": "<p>I have the same problem. The dataset is ready, the kernel was correctly, but I get an error during the submission process. </p>",
      "rawMarkdown": "I have the same problem. The dataset is ready, the kernel was correctly, but I get an error during the submission process.",
      "votes": null
    },
    {
      "id": "695908",
      "postDate": "12/15/2019 20:21:45",
      "content": "<p>I created csv file using this:</p>\n\n<p>import csv\nl = [\"id\"]+[i for i in range(5000)]\nr = [\"label\"]+[ y_p for y_p in resultl]\nrows = list(zip(l,r))\nwith open('/kaggle/working/submission.csv', 'w') as file:\n  writer = csv.writer(file)\n  writer.writerows(rows)</p>\n\n<p>the file format looks similar to the sample file. Still I get an error on submission.</p>\n\n<p>Please help!!</p>",
      "rawMarkdown": "I created csv file using this:\n\nimport csv\nl = [\"id\"]+[i for i in range(5000)]\nr = [\"label\"]+[ y_p for y_p in resultl]\nrows = list(zip(l,r))\nwith open('/kaggle/working/submission.csv', 'w') as file:\n  writer = csv.writer(file)\n  writer.writerows(rows)\n\nthe file format looks similar to the sample file. Still I get an error on submission.\n\nPlease help!!",
      "votes": null
    },
    {
      "id": "695922",
      "postDate": "12/15/2019 21:17:47",
      "content": "<p>For me it works now. You have just to wait some minutes for the submission. Be sure that you denote the DataFrame with 'id' and 'label', otherwise you will receive an error</p>",
      "rawMarkdown": "For me it works now. You have just to wait some minutes for the submission. Be sure that you denote the DataFrame with 'id' and 'label', otherwise you will receive an error",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 691394,
      "author_name": "kabilan45",
      "author_url": "",
      "post_date": "12/10/2019 04:58:05",
      "content": "<p>set index=False\nuse small letters in id and label\nfile name should be submission.csv</p>\n\n<p>if it doesn't works reply me</p>",
      "votes": null,
      "replies": [
        {
          "id": 692088,
          "author_name": "namanj27",
          "author_url": "",
          "post_date": "12/10/2019 21:11:36",
          "content": "<p>Error not resolved !</p>\n\n<p>I tried this:-</p>\n\n<p>ypred=model.predict(xtest)\nsubmission=pd.readcsv(os.path.join(dirname,'samplesubmission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)</p>\n\n<p>and this too ( not label in sample_submission )but still the error persists</p>\n\n<p>ypred = model.predictclasses(xtest) idcol = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': idcol, 'label': ypred}) submission.tocsv('submission.csv', index = False)</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 692081,
      "author_name": "namanj27",
      "author_url": "",
      "post_date": "12/10/2019 20:58:45",
      "content": "<p>Error not resolved !</p>\n\n<p>I tried this:-</p>\n\n<p>ypred=model.predict(xtest)\nsubmission=pd.read_csv(os.path.join(dirname,'sample_submission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)</p>\n\n<p>and this too  ( not label in sample_submission )but still the error persists</p>\n\n<p>ypred = model.predict_classes(xtest)\nid_col = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': id_col, 'label': ypred})\nsubmission.to_csv('submission.csv', index = False)</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 692550,
      "author_name": "apalladi",
      "author_url": "",
      "post_date": "12/11/2019 12:36:22",
      "content": "<p>I have the same problem. The dataset is ready, the kernel was correctly, but I get an error during the submission process. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 695908,
      "author_name": "f2016759",
      "author_url": "",
      "post_date": "12/15/2019 20:21:45",
      "content": "<p>I created csv file using this:</p>\n\n<p>import csv\nl = [\"id\"]+[i for i in range(5000)]\nr = [\"label\"]+[ y_p for y_p in resultl]\nrows = list(zip(l,r))\nwith open('/kaggle/working/submission.csv', 'w') as file:\n  writer = csv.writer(file)\n  writer.writerows(rows)</p>\n\n<p>the file format looks similar to the sample file. Still I get an error on submission.</p>\n\n<p>Please help!!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 695922,
      "author_name": "apalladi",
      "author_url": "",
      "post_date": "12/15/2019 21:17:47",
      "content": "<p>For me it works now. You have just to wait some minutes for the submission. Be sure that you denote the DataFrame with 'id' and 'label', otherwise you will receive an error</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "689626": "I tried this: https://www.kaggle.com/marcthalen/mnist-cnn-99-top-30-using-keras/data ,\nand I tried this: https://www.kaggle.com/c/Kannada-MNIST/discussion/110586 , \nand this: https://www.kaggle.com/c/Kannada-MNIST/discussion/114937#latest-667213 .\nAll of them could not help me solve the problem. My submission says \"Submission Scoring Error\", even my submission.csv is the same to sample_submission.csv. Need Help!!!",
    "691394": "set index=False\nuse small letters in id and label\nfile name should be submission.csv\n\nif it doesn't works reply me",
    "692081": "Error not resolved !\n\nI tried this:-\n\nypred=model.predict(xtest)\nsubmission=pd.read_csv(os.path.join(dirname,'sample_submission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)\n\nand this too  ( not label in sample_submission )but still the error persists\n\nypred = model.predict_classes(xtest)\nid_col = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': id_col, 'label': ypred})\nsubmission.to_csv('submission.csv', index = False)",
    "692088": "Error not resolved !\n\nI tried this:-\n\nypred=model.predict(xtest)\nsubmission=pd.readcsv(os.path.join(dirname,'samplesubmission.csv'))\nsubmission['label']=ypred\nsubmission.to_csv('submission.csv',index=False)\n\nand this too ( not label in sample_submission )but still the error persists\n\nypred = model.predictclasses(xtest) idcol = np.arange(ypred.shape[0])\nsubmission = pd.DataFrame({'id': idcol, 'label': ypred}) submission.tocsv('submission.csv', index = False)",
    "692550": "I have the same problem. The dataset is ready, the kernel was correctly, but I get an error during the submission process.",
    "695908": "I created csv file using this:\n\nimport csv\nl = [\"id\"]+[i for i in range(5000)]\nr = [\"label\"]+[ y_p for y_p in resultl]\nrows = list(zip(l,r))\nwith open('/kaggle/working/submission.csv', 'w') as file:\n  writer = csv.writer(file)\n  writer.writerows(rows)\n\nthe file format looks similar to the sample file. Still I get an error on submission.\n\nPlease help!!",
    "695922": "For me it works now. You have just to wait some minutes for the submission. Be sure that you denote the DataFrame with 'id' and 'label', otherwise you will receive an error"
  },
  "source": "meta"
}