{
  "id": 231968,
  "title": "I had some problems submitting the results",
  "url": "/competitions/plant-pathology-2021-fgvc8/discussion/231968",
  "author_name": "",
  "post_date": "2021-04-11T14:08:34.647533400Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>The following is part of my code, the result was submitted two days, but still no score. I don't know why</p>\n<h1>code</h1>\n<p>labels = list(train_df['labels'].value_counts().keys())<br>\ndef test_plant(test_loader, model, device):<br>\n    model = model.to(device)<br>\n    model.eval()<br>\n    preds = []<br>\n    for step, (images, labels) in enumerate(test_loader):<br>\n        images = images.to(device)<br>\n        model.eval()<br>\n        with torch.no_grad():<br>\n            y_preds = model(images)<br>\n        preds.append(y_preds.sigmoid().to('cpu').numpy())<br>\n    return preds</p>\n<p>pre = test_plant(test_loader, net, CFG.device)<br>\npre_plant = []</p>\n<p>for i in pre[0]:<br>\n    pre_list = list(i)<br>\n    plant_index = pre_list.index(max(pre_list))<br>\n    pre_plant.append((labels[plant_index]))<br>\ntest_df['labels'] = pre_plant<br>\ntest_df.to_csv('submission.csv', index=False)</p>",
  "messages": [
    {
      "id": "1270309",
      "postDate": "04/11/2021 14:08:34",
      "content": "<p>The following is part of my code, the result was submitted two days, but still no score. I don't know why</p>\n<h1>code</h1>\n<p>labels = list(train_df['labels'].value_counts().keys())<br>\ndef test_plant(test_loader, model, device):<br>\n    model = model.to(device)<br>\n    model.eval()<br>\n    preds = []<br>\n    for step, (images, labels) in enumerate(test_loader):<br>\n        images = images.to(device)<br>\n        model.eval()<br>\n        with torch.no_grad():<br>\n            y_preds = model(images)<br>\n        preds.append(y_preds.sigmoid().to('cpu').numpy())<br>\n    return preds</p>\n<p>pre = test_plant(test_loader, net, CFG.device)<br>\npre_plant = []</p>\n<p>for i in pre[0]:<br>\n    pre_list = list(i)<br>\n    plant_index = pre_list.index(max(pre_list))<br>\n    pre_plant.append((labels[plant_index]))<br>\ntest_df['labels'] = pre_plant<br>\ntest_df.to_csv('submission.csv', index=False)</p>",
      "rawMarkdown": "The following is part of my code, the result was submitted two days, but still no score. I don't know why\n# code\nlabels = list(train_df['labels'].value_counts().keys())\ndef test_plant(test_loader, model, device):\n    model = model.to(device)\n    model.eval()\n    preds = []\n    for step, (images, labels) in enumerate(test_loader):\n        images = images.to(device)\n        model.eval()\n        with torch.no_grad():\n            y_preds = model(images)\n        preds.append(y_preds.sigmoid().to('cpu').numpy())\n    return preds\n\npre = test_plant(test_loader, net, CFG.device)\npre_plant = []\n\nfor i in pre[0]:\n    pre_list = list(i)\n    plant_index = pre_list.index(max(pre_list))\n    pre_plant.append((labels[plant_index]))\ntest_df['labels'] = pre_plant\ntest_df.to_csv('submission.csv', index=False)",
      "votes": null
    },
    {
      "id": "1270352",
      "postDate": "04/11/2021 15:00:29",
      "content": "<p>Do you have \"Notebook Timeout\"?</p>",
      "rawMarkdown": "Do you have \"Notebook Timeout\"?",
      "votes": null
    },
    {
      "id": "1270748",
      "postDate": "04/12/2021 01:01:37",
      "content": "<p><a href=\"https://www.kaggle.com/atamazian\" target=\"_blank\">@atamazian</a> I have submitted it repeatedly for several times and it has passed. Thank you</p>",
      "rawMarkdown": "atamazian I have submitted it repeatedly for several times and it has passed. Thank you",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1270352,
      "author_name": "atamazian",
      "author_url": "",
      "post_date": "04/11/2021 15:00:29",
      "content": "<p>Do you have \"Notebook Timeout\"?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1270748,
      "author_name": "dlidli",
      "author_url": "",
      "post_date": "04/12/2021 01:01:37",
      "content": "<p><a href=\"https://www.kaggle.com/atamazian\" target=\"_blank\">@atamazian</a> I have submitted it repeatedly for several times and it has passed. Thank you</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1270309": "The following is part of my code, the result was submitted two days, but still no score. I don't know why\n# code\nlabels = list(train_df['labels'].value_counts().keys())\ndef test_plant(test_loader, model, device):\n    model = model.to(device)\n    model.eval()\n    preds = []\n    for step, (images, labels) in enumerate(test_loader):\n        images = images.to(device)\n        model.eval()\n        with torch.no_grad():\n            y_preds = model(images)\n        preds.append(y_preds.sigmoid().to('cpu').numpy())\n    return preds\n\npre = test_plant(test_loader, net, CFG.device)\npre_plant = []\n\nfor i in pre[0]:\n    pre_list = list(i)\n    plant_index = pre_list.index(max(pre_list))\n    pre_plant.append((labels[plant_index]))\ntest_df['labels'] = pre_plant\ntest_df.to_csv('submission.csv', index=False)",
    "1270352": "Do you have \"Notebook Timeout\"?",
    "1270748": "atamazian I have submitted it repeatedly for several times and it has passed. Thank you"
  },
  "source": "meta"
}