{
  "id": 246256,
  "title": "Submission Scoring Error",
  "url": "/competitions/coleridgeinitiative-show-us-the-data/discussion/246256",
  "author_name": "",
  "post_date": "2021-06-14T15:50:36.723610100Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi, </p>\n<p>im trying string matching to test out the submission process. I can't find the mistake, especially, since it seems, like my submission file format is identical to the sample_submission.</p>\n<ul>\n<li>i receive the error after only a few seconds of runtime</li>\n<li>if i rename sample_submission.csv to submission.csv with empty PredictionStrings column, i don't receive an error</li>\n<li>i am using R</li>\n<li>function to save my result: <code>write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")</code></li>\n<li>if i open submission.csv with Texteditor: Encoding is UTF-8, UNIX-LF</li>\n</ul>\n<p>when i run the script on the Test Data from <code>../input/coleridgeinitiative-show-us-the-data/test</code> i receive:</p>\n<pre><code>Id,PredictionString\n2100032a-7c33-4bff-97ef-690822c43466,adni|alzheimer s disease neuroimaging initiative adni \n2f392438-e215-4169-bebf-21ac4ff253e1,trends in international mathematics and science study\n3f316b38-1a24-45a9-8d8c-4e05a42257c6,slosh model|noaa storm surge inundation\n8e6996b4-ca08-4c0b-bed2-aaf07a4c6a60,rural urban continuum codes\n</code></pre>\n<p>Example of dataframe <code>result</code>with 10 files from Train Folder:</p>\n<pre><code>A data.frame: 10 × 2\nId    PredictionString\n&lt;fct&gt;    &lt;fct&gt;\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7    program for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90    trends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba    agricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8    adni|alzheimer s disease neuroimaging initiative adni\n0010357a-6365-4e5f-b982-582e6d32c3ee    genome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743    adni|alzheimer s disease neuroimaging initiative adni\n00243b98-f868-45e4-9b83-0c346c7ecad5    early childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583    baltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f    noaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c    baltimore longitudinal study of aging\n</code></pre>\n<p>CSV Ouput:</p>\n<pre><code>Id,PredictionString\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7,program for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90,trends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba,agricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8,adni|alzheimer s disease neuroimaging initiative adni \n0010357a-6365-4e5f-b982-582e6d32c3ee,genome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743,adni|alzheimer s disease neuroimaging initiative adni \n00243b98-f868-45e4-9b83-0c346c7ecad5,early childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583,baltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f,noaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c,baltimore longitudinal study of aging\n</code></pre>\n<p>Do you have any ideas?</p>\n<p>Thanks in advance!</p>",
  "messages": [
    {
      "id": "1349229",
      "postDate": "06/14/2021 15:50:36",
      "content": "<p>Hi, </p>\n<p>im trying string matching to test out the submission process. I can't find the mistake, especially, since it seems, like my submission file format is identical to the sample_submission.</p>\n<ul>\n<li>i receive the error after only a few seconds of runtime</li>\n<li>if i rename sample_submission.csv to submission.csv with empty PredictionStrings column, i don't receive an error</li>\n<li>i am using R</li>\n<li>function to save my result: <code>write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")</code></li>\n<li>if i open submission.csv with Texteditor: Encoding is UTF-8, UNIX-LF</li>\n</ul>\n<p>when i run the script on the Test Data from <code>../input/coleridgeinitiative-show-us-the-data/test</code> i receive:</p>\n<pre><code>Id,PredictionString\n2100032a-7c33-4bff-97ef-690822c43466,adni|alzheimer s disease neuroimaging initiative adni \n2f392438-e215-4169-bebf-21ac4ff253e1,trends in international mathematics and science study\n3f316b38-1a24-45a9-8d8c-4e05a42257c6,slosh model|noaa storm surge inundation\n8e6996b4-ca08-4c0b-bed2-aaf07a4c6a60,rural urban continuum codes\n</code></pre>\n<p>Example of dataframe <code>result</code>with 10 files from Train Folder:</p>\n<pre><code>A data.frame: 10 × 2\nId    PredictionString\n&lt;fct&gt;    &lt;fct&gt;\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7    program for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90    trends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba    agricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8    adni|alzheimer s disease neuroimaging initiative adni\n0010357a-6365-4e5f-b982-582e6d32c3ee    genome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743    adni|alzheimer s disease neuroimaging initiative adni\n00243b98-f868-45e4-9b83-0c346c7ecad5    early childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583    baltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f    noaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c    baltimore longitudinal study of aging\n</code></pre>\n<p>CSV Ouput:</p>\n<pre><code>Id,PredictionString\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7,program for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90,trends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba,agricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8,adni|alzheimer s disease neuroimaging initiative adni \n0010357a-6365-4e5f-b982-582e6d32c3ee,genome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743,adni|alzheimer s disease neuroimaging initiative adni \n00243b98-f868-45e4-9b83-0c346c7ecad5,early childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583,baltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f,noaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c,baltimore longitudinal study of aging\n</code></pre>\n<p>Do you have any ideas?</p>\n<p>Thanks in advance!</p>",
      "rawMarkdown": "Hi, \n\nim trying string matching to test out the submission process. I can't find the mistake, especially, since it seems, like my submission file format is identical to the sample_submission.\n\n- i receive the error after only a few seconds of runtime\n- if i rename sample_submission.csv to submission.csv with empty PredictionStrings column, i don't receive an error\n- i am using R\n- function to save my result: `write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")`\n- if i open submission.csv with Texteditor: Encoding is UTF-8, UNIX-LF\n\nwhen i run the script on the Test Data from `../input/coleridgeinitiative-show-us-the-data/test` i receive:\n\n```\nId,PredictionString\n2100032a-7c33-4bff-97ef-690822c43466,adni|alzheimer s disease neuroimaging initiative adni \n2f392438-e215-4169-bebf-21ac4ff253e1,trends in international mathematics and science study\n3f316b38-1a24-45a9-8d8c-4e05a42257c6,slosh model|noaa storm surge inundation\n8e6996b4-ca08-4c0b-bed2-aaf07a4c6a60,rural urban continuum codes\n```\n\n\n\nExample of dataframe `result `with 10 files from Train Folder:\n\n```\nA data.frame: 10 × 2\nId\tPredictionString\n<fct>\t<fct>\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7\tprogram for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90\ttrends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba\tagricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8\tadni|alzheimer s disease neuroimaging initiative adni\n0010357a-6365-4e5f-b982-582e6d32c3ee\tgenome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743\tadni|alzheimer s disease neuroimaging initiative adni\n00243b98-f868-45e4-9b83-0c346c7ecad5\tearly childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583\tbaltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f\tnoaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c\tbaltimore longitudinal study of aging\n```\n\n\n\n\nCSV Ouput:\n```\nId,PredictionString\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7,program for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90,trends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba,agricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8,adni|alzheimer s disease neuroimaging initiative adni \n0010357a-6365-4e5f-b982-582e6d32c3ee,genome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743,adni|alzheimer s disease neuroimaging initiative adni \n00243b98-f868-45e4-9b83-0c346c7ecad5,early childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583,baltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f,noaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c,baltimore longitudinal study of aging\n```\n\nDo you have any ideas?\n\nThanks in advance!",
      "votes": null
    },
    {
      "id": "1350241",
      "postDate": "06/15/2021 11:21:45",
      "content": "<p>Hi, have you found out what's wrong yet? I have the same problem and couldn't solve it for days now</p>",
      "rawMarkdown": "Hi, have you found out what's wrong yet? I have the same problem and couldn't solve it for days now",
      "votes": null
    },
    {
      "id": "1351284",
      "postDate": "06/16/2021 07:25:29",
      "content": "<p>I'm saving my data.frame as tibble now. The run is not cancelled anymore after only a few secounds. But now it seems like my code gets stuck with a few files, which seems to be another problem.</p>\n<p>Still using this line:<br>\n<code>write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")</code> </p>",
      "rawMarkdown": "I'm saving my data.frame as tibble now. The run is not cancelled anymore after only a few secounds. But now it seems like my code gets stuck with a few files, which seems to be another problem.\n\nStill using this line:\n`write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1350241,
      "author_name": "minhhieutran2112",
      "author_url": "",
      "post_date": "06/15/2021 11:21:45",
      "content": "<p>Hi, have you found out what's wrong yet? I have the same problem and couldn't solve it for days now</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1351284,
      "author_name": "moritzwassmer",
      "author_url": "",
      "post_date": "06/16/2021 07:25:29",
      "content": "<p>I'm saving my data.frame as tibble now. The run is not cancelled anymore after only a few secounds. But now it seems like my code gets stuck with a few files, which seems to be another problem.</p>\n<p>Still using this line:<br>\n<code>write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")</code> </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1349229": "Hi, \n\nim trying string matching to test out the submission process. I can't find the mistake, especially, since it seems, like my submission file format is identical to the sample_submission.\n\n- i receive the error after only a few seconds of runtime\n- if i rename sample_submission.csv to submission.csv with empty PredictionStrings column, i don't receive an error\n- i am using R\n- function to save my result: `write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")`\n- if i open submission.csv with Texteditor: Encoding is UTF-8, UNIX-LF\n\nwhen i run the script on the Test Data from `../input/coleridgeinitiative-show-us-the-data/test` i receive:\n\n```\nId,PredictionString\n2100032a-7c33-4bff-97ef-690822c43466,adni|alzheimer s disease neuroimaging initiative adni \n2f392438-e215-4169-bebf-21ac4ff253e1,trends in international mathematics and science study\n3f316b38-1a24-45a9-8d8c-4e05a42257c6,slosh model|noaa storm surge inundation\n8e6996b4-ca08-4c0b-bed2-aaf07a4c6a60,rural urban continuum codes\n```\n\n\n\nExample of dataframe `result `with 10 files from Train Folder:\n\n```\nA data.frame: 10 × 2\nId\tPredictionString\n<fct>\t<fct>\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7\tprogram for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90\ttrends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba\tagricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8\tadni|alzheimer s disease neuroimaging initiative adni\n0010357a-6365-4e5f-b982-582e6d32c3ee\tgenome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743\tadni|alzheimer s disease neuroimaging initiative adni\n00243b98-f868-45e4-9b83-0c346c7ecad5\tearly childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583\tbaltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f\tnoaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c\tbaltimore longitudinal study of aging\n```\n\n\n\n\nCSV Ouput:\n```\nId,PredictionString\n0007f880-0a9b-492d-9a58-76eb0b0e0bd7,program for the international assessment of adult competencies\n0008656f-0ba2-4632-8602-3017b44c2e90,trends in international mathematics and science study\n000e04d6-d6ef-442f-b070-4309493221ba,agricultural resources management survey\n000efc17-13d8-433d-8f62-a3932fe4f3b8,adni|alzheimer s disease neuroimaging initiative adni \n0010357a-6365-4e5f-b982-582e6d32c3ee,genome sequence of covid 19\n002203f0-1c57-4400-abc1-b783c4085743,adni|alzheimer s disease neuroimaging initiative adni \n00243b98-f868-45e4-9b83-0c346c7ecad5,early childhood longitudinal study\n00248da3-ac1d-48fa-a95e-cc88553f9583,baltimore longitudinal study of aging blsa |baltimore longitudinal study of aging\n0026563b-d5b3-417d-bd25-7656b97a044f,noaa tide gauge\n002b53ee-5b30-497f-a2fd-56885563918c,baltimore longitudinal study of aging\n```\n\nDo you have any ideas?\n\nThanks in advance!",
    "1350241": "Hi, have you found out what's wrong yet? I have the same problem and couldn't solve it for days now",
    "1351284": "I'm saving my data.frame as tibble now. The run is not cancelled anymore after only a few secounds. But now it seems like my code gets stuck with a few files, which seems to be another problem.\n\nStill using this line:\n`write_csv(result,\"./submission.csv\", quote = FALSE, eol = \"\\n\")`"
  },
  "source": "meta"
}