{
  "id": 285115,
  "title": "My resNet36 model achieved the accuracy rate of 0.9875,but why the test only socred 0.1005?",
  "url": "/competitions/cifar-10/discussion/285115",
  "author_name": "dakai Pan",
  "post_date": "2021-11-03T10:49:01.685000",
  "votes": 17,
  "comment_count": 15,
  "views": 0,
  "content": "<p>This score is mean to the result was producted randomly,what happend?</p>",
  "messages": [
    {
      "id": 2872940,
      "postDate": "2024-06-15T07:30:18.447Z",
      "content": "<p>Facing similar issue after passing the test data through the trained model on my private Jupyter notebook…, it has to be something related with submission process!</p>",
      "rawMarkdown": "Facing similar issue after passing the test data through the trained model on my private Jupyter notebook..., it has to be something related with submission process!",
      "votes": 1
    },
    {
      "id": 2846828,
      "postDate": "2024-05-31T09:27:23.723Z",
      "content": "<p>The mapping between id and label is inconsistent.</p>\n<p>labels_df = pd.read_csv('D:/data/CIFAR-10 - Object Recognition in Images/trainLabels.csv')<br>\nlabel_to_int = {label: idx for idx, label in enumerate(labels_df['label'].unique())}<br>\nint_to_label = {idx: label for label, idx in label_to_int.items()}</p>\n<p>print(\"label_to_int:\", label_to_int)<br>\nprint(\"int_to_label:\", int_to_label)</p>",
      "rawMarkdown": "The mapping between id and label is inconsistent.\n\nlabels_df = pd.read_csv('D:/data/CIFAR-10 - Object Recognition in Images/trainLabels.csv')\nlabel_to_int = {label: idx for idx, label in enumerate(labels_df['label'].unique())}\nint_to_label = {idx: label for label, idx in label_to_int.items()}\n\nprint(\"label_to_int:\", label_to_int)\nprint(\"int_to_label:\", int_to_label)",
      "votes": 1
    },
    {
      "id": 1569293,
      "postDate": "2021-11-03T10:49:01.687Z",
      "content": "<p>This score is mean to the result was producted randomly,what happend?</p>",
      "rawMarkdown": "This score is mean to the result was producted randomly,what happend?",
      "votes": 17
    },
    {
      "id": 1714371,
      "postDate": "2022-03-06T22:26:14.240Z",
      "content": "<p>I encountered a similar problem. If you have figured why this happened, please let me know! Much appreciated.</p>",
      "rawMarkdown": "I encountered a similar problem. If you have figured why this happened, please let me know! Much appreciated.",
      "votes": 1
    },
    {
      "id": 1569801,
      "postDate": "2021-11-03T18:06:48.107Z",
      "content": "<p>Looks to be your model is over fitted on training data, have you done cross validation <a href=\"https://www.kaggle.com/dakaipan\" target=\"_blank\">@dakaipan</a> ?</p>",
      "rawMarkdown": "Looks to be your model is over fitted on training data, have you done cross validation @dakaipan ?",
      "votes": 1
    },
    {
      "id": 2964071,
      "postDate": "2024-08-19T14:00:45.367Z",
      "content": "<p>It's over fitting, for fix that, you can normalise the dataset and get a validation 10% (with cross validation or other…)</p>",
      "rawMarkdown": "It's over fitting, for fix that, you can normalise the dataset and get a validation 10% (with cross validation or other...)"
    },
    {
      "id": 2459939,
      "postDate": "2023-09-28T13:33:09.943Z",
      "content": "<p>Were you able to fix this? How did you do so?</p>",
      "rawMarkdown": "Were you able to fix this? How did you do so?"
    },
    {
      "id": 2412214,
      "postDate": "2023-08-28T06:38:50.360Z",
      "content": "<p>it might not be overfitting, which cannot bring such huge gap in most cases.</p>",
      "rawMarkdown": "it might not be overfitting, which cannot bring such huge gap in most cases."
    },
    {
      "id": 2324886,
      "postDate": "2023-07-01T01:11:00.157Z",
      "content": "<p>Usually is because overfitting, but since this huge gap, I think you must have bug in generating the final  result csv.</p>",
      "rawMarkdown": "Usually is because overfitting, but since this huge gap, I think you must have bug in generating the final  result csv."
    },
    {
      "id": 2243390,
      "postDate": "2023-05-02T21:48:35.383Z",
      "content": "<p>Possibly it is an error in the prediction sequence. Can you give more details?</p>",
      "rawMarkdown": "Possibly it is an error in the prediction sequence. Can you give more details?"
    },
    {
      "id": 2205200,
      "postDate": "2023-04-01T10:38:23.710Z",
      "content": "<p>Have you solved the issue? It's very likely your submission data sort id as <strong><em>string</em></strong> (left), rather than <strong><em>int</em></strong> (right)<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F978db01581299702267c1b0cbceb2e9f%2Ftemp1.png?generation=1680345375034649&amp;alt=media\" alt=\"\"><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F5825c49b86abdf06e7002405fcfdc1aa%2Ftemp2.png?generation=1680345378848587&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "Have you solved the issue? It's very likely your submission data sort id as ***string*** (left), rather than ***int*** (right)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F978db01581299702267c1b0cbceb2e9f%2Ftemp1.png?generation=1680345375034649&alt=media)![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F5825c49b86abdf06e7002405fcfdc1aa%2Ftemp2.png?generation=1680345378848587&alt=media)"
    },
    {
      "id": 2169458,
      "postDate": "2023-03-05T06:15:49.493Z",
      "content": "<p>It may occurs when your train dataset and test dataset labels are not same. Maybe truck class's label is 1 for your train dataset but it is 2 for yout test dataset. Check their labels. </p>",
      "rawMarkdown": "It may occurs when your train dataset and test dataset labels are not same. Maybe truck class's label is 1 for your train dataset but it is 2 for yout test dataset. Check their labels. "
    },
    {
      "id": 1919285,
      "postDate": "2022-08-30T09:40:14.420Z",
      "content": "<p>Is the sequence error in prediction?</p>",
      "rawMarkdown": "Is the sequence error in prediction?"
    },
    {
      "id": 1893449,
      "postDate": "2022-08-10T20:22:16.157Z",
      "content": "<p>Did you normalize the feature (e.g., dividing the tensor by 255)?</p>",
      "rawMarkdown": "Did you normalize the feature (e.g., dividing the tensor by 255)?"
    },
    {
      "id": 1872675,
      "postDate": "2022-07-27T06:54:41.990Z",
      "content": "<p>Make sure if you properly assigned the labels to the files - I had this problem :D<br>\n\"listdir(path)\" did not sort files </p>",
      "rawMarkdown": "Make sure if you properly assigned the labels to the files - I had this problem :D\n\"listdir(path)\" did not sort files "
    },
    {
      "id": 1749347,
      "postDate": "2022-04-08T13:28:44.927Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2872940,
      "author_name": "Vishal Painjane",
      "author_url": "",
      "post_date": "2024-06-15T07:30:18.447000",
      "content": "<p>Facing similar issue after passing the test data through the trained model on my private Jupyter notebook…, it has to be something related with submission process!</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2846828,
      "author_name": "Lee",
      "author_url": "",
      "post_date": "2024-05-31T09:27:23.723000",
      "content": "<p>The mapping between id and label is inconsistent.</p>\n<p>labels_df = pd.read_csv('D:/data/CIFAR-10 - Object Recognition in Images/trainLabels.csv')<br>\nlabel_to_int = {label: idx for idx, label in enumerate(labels_df['label'].unique())}<br>\nint_to_label = {idx: label for label, idx in label_to_int.items()}</p>\n<p>print(\"label_to_int:\", label_to_int)<br>\nprint(\"int_to_label:\", int_to_label)</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1714371,
      "author_name": "YuxuanLiu0626",
      "author_url": "",
      "post_date": "2022-03-06T22:26:14.240000",
      "content": "<p>I encountered a similar problem. If you have figured why this happened, please let me know! Much appreciated.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1569801,
      "author_name": "Old Monk",
      "author_url": "",
      "post_date": "2021-11-03T18:06:48.107000",
      "content": "<p>Looks to be your model is over fitted on training data, have you done cross validation <a href=\"https://www.kaggle.com/dakaipan\" target=\"_blank\">@dakaipan</a> ?</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2964071,
      "author_name": "OUARAS Khelil Rafik",
      "author_url": "",
      "post_date": "2024-08-19T14:00:45.367000",
      "content": "<p>It's over fitting, for fix that, you can normalise the dataset and get a validation 10% (with cross validation or other…)</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2459939,
      "author_name": "Dhruv G",
      "author_url": "",
      "post_date": "2023-09-28T13:33:09.943000",
      "content": "<p>Were you able to fix this? How did you do so?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2412214,
      "author_name": "Pengfei Zhou",
      "author_url": "",
      "post_date": "2023-08-28T06:38:50.360000",
      "content": "<p>it might not be overfitting, which cannot bring such huge gap in most cases.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2324886,
      "author_name": "XiaosongWen",
      "author_url": "",
      "post_date": "2023-07-01T01:11:00.157000",
      "content": "<p>Usually is because overfitting, but since this huge gap, I think you must have bug in generating the final  result csv.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2243390,
      "author_name": "Jose Torronteras",
      "author_url": "",
      "post_date": "2023-05-02T21:48:35.383000",
      "content": "<p>Possibly it is an error in the prediction sequence. Can you give more details?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2205200,
      "author_name": "WangHe",
      "author_url": "",
      "post_date": "2023-04-01T10:38:23.710000",
      "content": "<p>Have you solved the issue? It's very likely your submission data sort id as <strong><em>string</em></strong> (left), rather than <strong><em>int</em></strong> (right)<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F978db01581299702267c1b0cbceb2e9f%2Ftemp1.png?generation=1680345375034649&amp;alt=media\" alt=\"\"><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F5825c49b86abdf06e7002405fcfdc1aa%2Ftemp2.png?generation=1680345378848587&amp;alt=media\" alt=\"\"></p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2169458,
      "author_name": "Muhammed Cihad ARSLANOĞLU",
      "author_url": "",
      "post_date": "2023-03-05T06:15:49.493000",
      "content": "<p>It may occurs when your train dataset and test dataset labels are not same. Maybe truck class's label is 1 for your train dataset but it is 2 for yout test dataset. Check their labels. </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1919285,
      "author_name": "Jack77T",
      "author_url": "",
      "post_date": "2022-08-30T09:40:14.420000",
      "content": "<p>Is the sequence error in prediction?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1893449,
      "author_name": "shunting",
      "author_url": "",
      "post_date": "2022-08-10T20:22:16.157000",
      "content": "<p>Did you normalize the feature (e.g., dividing the tensor by 255)?</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1872675,
      "author_name": "Jan Sowa",
      "author_url": "",
      "post_date": "2022-07-27T06:54:41.990000",
      "content": "<p>Make sure if you properly assigned the labels to the files - I had this problem :D<br>\n\"listdir(path)\" did not sort files </p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 1749347,
      "author_name": "",
      "author_url": "",
      "post_date": "2022-04-08T13:28:44.927000",
      "content": "",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2872940": "Facing similar issue after passing the test data through the trained model on my private Jupyter notebook..., it has to be something related with submission process!",
    "2846828": "The mapping between id and label is inconsistent.\n\nlabels_df = pd.read_csv('D:/data/CIFAR-10 - Object Recognition in Images/trainLabels.csv')\nlabel_to_int = {label: idx for idx, label in enumerate(labels_df['label'].unique())}\nint_to_label = {idx: label for label, idx in label_to_int.items()}\n\nprint(\"label_to_int:\", label_to_int)\nprint(\"int_to_label:\", int_to_label)",
    "1569293": "This score is mean to the result was producted randomly,what happend?",
    "1714371": "I encountered a similar problem. If you have figured why this happened, please let me know! Much appreciated.",
    "1569801": "Looks to be your model is over fitted on training data, have you done cross validation @dakaipan ?",
    "2964071": "It's over fitting, for fix that, you can normalise the dataset and get a validation 10% (with cross validation or other...)",
    "2459939": "Were you able to fix this? How did you do so?",
    "2412214": "it might not be overfitting, which cannot bring such huge gap in most cases.",
    "2324886": "Usually is because overfitting, but since this huge gap, I think you must have bug in generating the final  result csv.",
    "2243390": "Possibly it is an error in the prediction sequence. Can you give more details?",
    "2205200": "Have you solved the issue? It's very likely your submission data sort id as ***string*** (left), rather than ***int*** (right)\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F978db01581299702267c1b0cbceb2e9f%2Ftemp1.png?generation=1680345375034649&alt=media)![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3852696%2F5825c49b86abdf06e7002405fcfdc1aa%2Ftemp2.png?generation=1680345378848587&alt=media)",
    "2169458": "It may occurs when your train dataset and test dataset labels are not same. Maybe truck class's label is 1 for your train dataset but it is 2 for yout test dataset. Check their labels. ",
    "1919285": "Is the sequence error in prediction?",
    "1893449": "Did you normalize the feature (e.g., dividing the tensor by 255)?",
    "1872675": "Make sure if you properly assigned the labels to the files - I had this problem :D\n\"listdir(path)\" did not sort files ",
    "1749347": ""
  }
}