{
  "id": 71774,
  "title": "Impossible submission",
  "url": "/competitions/quora-insincere-questions-classification/discussion/71774",
  "author_name": "",
  "post_date": "2018-11-16T11:54:12.018080900Z",
  "votes": 1,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi everybody, </p>\n\n<p>I already looked for a solution on Google and historical Kaggle competitions, however I cannot solve this problem I have with the submission.</p>\n\n<p>I am running my code in a notebook Kernel and I am generating the submission.csv file in this way:</p>\n\n<p><code>\nqids = metrics_test[\"qid\"].tolist()\nsub_df = pd.DataFrame( {\"qid\":metrics_test[\"qid\"],\"prediction\":pred_sub})\nsub_df.to_csv(\"submission.csv\",index=False)\n</code></p>\n\n<p>where  <code>metrics_test</code> is the dataframe from the test.csv file, provided by Quora, <code>pred_sub</code> is a list where predictions are saved as integers (0 and 1) . \nOnce the notebook is commited I go to the output page that you can see from the attached image (commit run smoothly without errors).</p>\n\n<p>First of all the submit button  is gray, secondly the csv file is shown as an overlap between the qid and the prediction value ( I am using Firefox at the  moment), and the submission file is not displayed in its entire length.\nI already checked with other browsers, by using scripts where I upload the submission.csv file (which is totally fine on my laptop) and trying to make a new submission, but nothing changes.\nWhere am I wrong?</p>",
  "messages": [
    {
      "id": "422553",
      "postDate": "11/16/2018 11:54:12",
      "content": "<p>Hi everybody, </p>\n\n<p>I already looked for a solution on Google and historical Kaggle competitions, however I cannot solve this problem I have with the submission.</p>\n\n<p>I am running my code in a notebook Kernel and I am generating the submission.csv file in this way:</p>\n\n<p><code>\nqids = metrics_test[\"qid\"].tolist()\nsub_df = pd.DataFrame( {\"qid\":metrics_test[\"qid\"],\"prediction\":pred_sub})\nsub_df.to_csv(\"submission.csv\",index=False)\n</code></p>\n\n<p>where  <code>metrics_test</code> is the dataframe from the test.csv file, provided by Quora, <code>pred_sub</code> is a list where predictions are saved as integers (0 and 1) . \nOnce the notebook is commited I go to the output page that you can see from the attached image (commit run smoothly without errors).</p>\n\n<p>First of all the submit button  is gray, secondly the csv file is shown as an overlap between the qid and the prediction value ( I am using Firefox at the  moment), and the submission file is not displayed in its entire length.\nI already checked with other browsers, by using scripts where I upload the submission.csv file (which is totally fine on my laptop) and trying to make a new submission, but nothing changes.\nWhere am I wrong?</p>",
      "rawMarkdown": "Hi everybody, \n\nI already looked for a solution on Google and historical Kaggle competitions, however I cannot solve this problem I have with the submission.\n\nI am running my code in a notebook Kernel and I am generating the submission.csv file in this way:\n\n```\nqids = metrics_test[\"qid\"].tolist()\nsub_df = pd.DataFrame( {\"qid\":metrics_test[\"qid\"],\"prediction\":pred_sub})\nsub_df.to_csv(\"submission.csv\",index=False)\n```\n\nwhere  ```metrics_test``` is the dataframe from the test.csv file, provided by Quora, ```pred_sub``` is a list where predictions are saved as integers (0 and 1) . \nOnce the notebook is commited I go to the output page that you can see from the attached image (commit run smoothly without errors).\n\nFirst of all the submit button  is gray, secondly the csv file is shown as an overlap between the qid and the prediction value ( I am using Firefox at the  moment), and the submission file is not displayed in its entire length.\nI already checked with other browsers, by using scripts where I upload the submission.csv file (which is totally fine on my laptop) and trying to make a new submission, but nothing changes.\nWhere am I wrong?",
      "votes": null
    },
    {
      "id": "422578",
      "postDate": "11/16/2018 12:45:36",
      "content": "<p>The displaying overlap is no big deal, it happens sometimes to me but does not prevent submission.</p>\n\n<p>However, you could be unable to submit because you use extra data sources in your Kernel or because internet is activated.</p>",
      "rawMarkdown": "The displaying overlap is no big deal, it happens sometimes to me but does not prevent submission.\n\nHowever, you could be unable to submit because you use extra data sources in your Kernel or because internet is activated.",
      "votes": null
    },
    {
      "id": "422610",
      "postDate": "11/16/2018 13:56:42",
      "content": "<p>Exactly, you caught the point. I run everything in the original kernel and delete all the other output files and it worked! Thanks very much </p>",
      "rawMarkdown": "Exactly, you caught the point. I run everything in the original kernel and delete all the other output files and it worked! Thanks very much",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 422578,
      "author_name": "theoviel",
      "author_url": "",
      "post_date": "11/16/2018 12:45:36",
      "content": "<p>The displaying overlap is no big deal, it happens sometimes to me but does not prevent submission.</p>\n\n<p>However, you could be unable to submit because you use extra data sources in your Kernel or because internet is activated.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 422610,
      "author_name": "steboss",
      "author_url": "",
      "post_date": "11/16/2018 13:56:42",
      "content": "<p>Exactly, you caught the point. I run everything in the original kernel and delete all the other output files and it worked! Thanks very much </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "422553": "Hi everybody, \n\nI already looked for a solution on Google and historical Kaggle competitions, however I cannot solve this problem I have with the submission.\n\nI am running my code in a notebook Kernel and I am generating the submission.csv file in this way:\n\n```\nqids = metrics_test[\"qid\"].tolist()\nsub_df = pd.DataFrame( {\"qid\":metrics_test[\"qid\"],\"prediction\":pred_sub})\nsub_df.to_csv(\"submission.csv\",index=False)\n```\n\nwhere  ```metrics_test``` is the dataframe from the test.csv file, provided by Quora, ```pred_sub``` is a list where predictions are saved as integers (0 and 1) . \nOnce the notebook is commited I go to the output page that you can see from the attached image (commit run smoothly without errors).\n\nFirst of all the submit button  is gray, secondly the csv file is shown as an overlap between the qid and the prediction value ( I am using Firefox at the  moment), and the submission file is not displayed in its entire length.\nI already checked with other browsers, by using scripts where I upload the submission.csv file (which is totally fine on my laptop) and trying to make a new submission, but nothing changes.\nWhere am I wrong?",
    "422578": "The displaying overlap is no big deal, it happens sometimes to me but does not prevent submission.\n\nHowever, you could be unable to submit because you use extra data sources in your Kernel or because internet is activated.",
    "422610": "Exactly, you caught the point. I run everything in the original kernel and delete all the other output files and it worked! Thanks very much"
  },
  "source": "meta"
}