{
  "id": 75846,
  "title": "Siamese Network for one shot learning",
  "url": "/competitions/humpback-whale-identification/discussion/75846",
  "author_name": "Prajjwal",
  "post_date": "2018-12-27T04:59:21.523000",
  "votes": 3,
  "comment_count": 14,
  "views": 0,
  "content": "<p>I was thinking of implementing Siamese Network after trying many ways of classification. But wanted to know how much well it is performing for this task. If you've received better results with it as compared to classification, could you please let us know and what all changes may be beneficial ? </p>",
  "messages": [
    {
      "id": 445815,
      "postDate": "2018-12-27T04:59:21.523Z",
      "content": "<p>I was thinking of implementing Siamese Network after trying many ways of classification. But wanted to know how much well it is performing for this task. If you've received better results with it as compared to classification, could you please let us know and what all changes may be beneficial ? </p>",
      "rawMarkdown": "I was thinking of implementing Siamese Network after trying many ways of classification. But wanted to know how much well it is performing for this task. If you've received better results with it as compared to classification, could you please let us know and what all changes may be beneficial ? ",
      "votes": 3
    },
    {
      "id": 447676,
      "postDate": "2018-12-30T10:05:53.380Z",
      "content": "<p>I think it can easily get you 0.9+ with some fine-tuning. In fact, I expect to see 0.98+ submission all over the LB in the later stage of this competition.</p>",
      "rawMarkdown": "I think it can easily get you 0.9+ with some fine-tuning. In fact, I expect to see 0.98+ submission all over the LB in the later stage of this competition.",
      "votes": 1,
      "replies": [
        {
          "id": 448015,
          "postDate": "2018-12-31T03:58:47.537Z",
          "content": "<p>You might be true, although on discussions, seems like it's not giving comparable results as compared to mere classification. Also how do you handle <code>new_whale</code>?</p>",
          "rawMarkdown": "You might be true, although on discussions, seems like it's not giving comparable results as compared to mere classification. Also how do you handle `new_whale`?"
        }
      ]
    },
    {
      "id": 445831,
      "postDate": "2018-12-27T05:23:12.877Z",
      "content": "<p>I have not tried any model in this competition. I believe that <code>Siamese</code> can give you over <code>0.85LB</code>.</p>",
      "rawMarkdown": "I have not tried any model in this competition. I believe that `Siamese` can give you over `0.85LB`.",
      "replies": [
        {
          "id": 452121,
          "postDate": "2019-01-08T08:19:46.227Z",
          "rawMarkdown": "",
          "isDeleted": true
        },
        {
          "id": 452148,
          "postDate": "2019-01-08T09:11:08.587Z",
          "content": "<p>I took part in the <code>playground</code> competition before. Also, I know exactly some guys are doing <code>Siamese</code> network and they archive <code>&gt;0.85LB</code></p>",
          "rawMarkdown": "I took part in the `playground` competition before. Also, I know exactly some guys are doing `Siamese` network and they archive `&gt;0.85LB`"
        },
        {
          "id": 452150,
          "postDate": "2019-01-08T09:17:07.353Z",
          "content": "<p>My single Siamese got 0.897 with only 90 epochs compared to the playground solution's 0.822 after 400.</p>\n\n<p>As for the reason why a siamese is good, because this is a one-shot detection problem, not classification. A really good classification model <em>may</em> work, but it's just much easier to do it the way it's intended to.</p>",
          "rawMarkdown": "My single Siamese got 0.897 with only 90 epochs compared to the playground solution's 0.822 after 400.\n\nAs for the reason why a siamese is good, because this is a one-shot detection problem, not classification. A really good classification model *may* work, but it's just much easier to do it the way it's intended to.",
          "votes": 6
        },
        {
          "id": 452214,
          "postDate": "2019-01-08T11:15:05.563Z",
          "content": "<p>Achieving 0.897 by only single model is wonderful. I think you can improve more 0.01~0.02 by ensembling multiple models.</p>",
          "rawMarkdown": "Achieving 0.897 by only single model is wonderful. I think you can improve more 0.01~0.02 by ensembling multiple models."
        },
        {
          "id": 452220,
          "postDate": "2019-01-08T11:22:17.070Z",
          "content": "<p>You can get 0.9 with classification only. Although, I also think that metric learning is more appropriate for this task</p>",
          "rawMarkdown": "You can get 0.9 with classification only. Although, I also think that metric learning is more appropriate for this task",
          "votes": 6
        },
        {
          "id": 452735,
          "postDate": "2019-01-09T05:12:52.697Z",
          "content": "<p>0.9 with classification only ? That's great. I tried classification with many models, doesn't seem to get above 0.78.  Which model do you seem to be using, is it custom ?</p>",
          "rawMarkdown": "0.9 with classification only ? That's great. I tried classification with many models, doesn't seem to get above 0.78.  Which model do you seem to be using, is it custom ?"
        },
        {
          "id": 457374,
          "postDate": "2019-01-17T09:50:01.387Z",
          "content": "<p>It is heavily based on <a href=\"https://www.kaggle.com/c/humpback-whale-identification/discussion/74647\">https://www.kaggle.com/c/humpback-whale-identification/discussion/74647</a> . That is why my nickname for this competition is \"thanks radek\"</p>",
          "rawMarkdown": "It is heavily based on https://www.kaggle.com/c/humpback-whale-identification/discussion/74647 . That is why my nickname for this competition is \"thanks radek\"",
          "votes": 3
        },
        {
          "id": 467385,
          "postDate": "2019-02-07T02:06:49.130Z",
          "content": "<p>Hi, old-ufo, Which notebook of radek's is your solution based on? Thank you.</p>",
          "rawMarkdown": "Hi, old-ufo, Which notebook of radek's is your solution based on? Thank you."
        },
        {
          "id": 467525,
          "postDate": "2019-02-07T09:18:44.613Z",
          "content": "<p><a href=\"https://github.com/radekosmulski/whale/blob/master/only_known_train.ipynb\">https://github.com/radekosmulski/whale/blob/master/only_known_train.ipynb</a></p>",
          "rawMarkdown": "https://github.com/radekosmulski/whale/blob/master/only_known_train.ipynb",
          "votes": 1
        },
        {
          "id": 467724,
          "postDate": "2019-02-07T16:14:01.137Z",
          "content": "<p>Nice, Thanks for your sharing.</p>",
          "rawMarkdown": "Nice, Thanks for your sharing."
        },
        {
          "id": 469533,
          "postDate": "2019-02-11T11:33:26.177Z",
          "content": "<p>Thanks for reading this question, I got one thing that I don't understand, how to solve the unbalanced distribution problem if you treat this problem as a Classification task? Thanks again for your time</p>",
          "rawMarkdown": "Thanks for reading this question, I got one thing that I don't understand, how to solve the unbalanced distribution problem if you treat this problem as a Classification task? Thanks again for your time"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 447676,
      "author_name": "Khoi Nguyen",
      "author_url": "",
      "post_date": "2018-12-30T10:05:53.380000",
      "content": "<p>I think it can easily get you 0.9+ with some fine-tuning. In fact, I expect to see 0.98+ submission all over the LB in the later stage of this competition.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 448015,
          "author_name": "Prajjwal",
          "author_url": "",
          "post_date": "2018-12-31T03:58:47.537000",
          "content": "<p>You might be true, although on discussions, seems like it's not giving comparable results as compared to mere classification. Also how do you handle <code>new_whale</code>?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 445831,
      "author_name": "cab",
      "author_url": "",
      "post_date": "2018-12-27T05:23:12.877000",
      "content": "<p>I have not tried any model in this competition. I believe that <code>Siamese</code> can give you over <code>0.85LB</code>.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 452121,
          "author_name": "",
          "author_url": "",
          "post_date": "2019-01-08T08:19:46.227000",
          "content": "",
          "votes": 0,
          "replies": []
        },
        {
          "id": 452148,
          "author_name": "cab",
          "author_url": "",
          "post_date": "2019-01-08T09:11:08.587000",
          "content": "<p>I took part in the <code>playground</code> competition before. Also, I know exactly some guys are doing <code>Siamese</code> network and they archive <code>&gt;0.85LB</code></p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 452150,
          "author_name": "Khoi Nguyen",
          "author_url": "",
          "post_date": "2019-01-08T09:17:07.353000",
          "content": "<p>My single Siamese got 0.897 with only 90 epochs compared to the playground solution's 0.822 after 400.</p>\n\n<p>As for the reason why a siamese is good, because this is a one-shot detection problem, not classification. A really good classification model <em>may</em> work, but it's just much easier to do it the way it's intended to.</p>",
          "votes": 6,
          "replies": []
        },
        {
          "id": 452214,
          "author_name": "toshi_k",
          "author_url": "",
          "post_date": "2019-01-08T11:15:05.563000",
          "content": "<p>Achieving 0.897 by only single model is wonderful. I think you can improve more 0.01~0.02 by ensembling multiple models.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 452220,
          "author_name": "old-ufo",
          "author_url": "",
          "post_date": "2019-01-08T11:22:17.070000",
          "content": "<p>You can get 0.9 with classification only. Although, I also think that metric learning is more appropriate for this task</p>",
          "votes": 6,
          "replies": []
        },
        {
          "id": 452735,
          "author_name": "Prajjwal",
          "author_url": "",
          "post_date": "2019-01-09T05:12:52.697000",
          "content": "<p>0.9 with classification only ? That's great. I tried classification with many models, doesn't seem to get above 0.78.  Which model do you seem to be using, is it custom ?</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 457374,
          "author_name": "old-ufo",
          "author_url": "",
          "post_date": "2019-01-17T09:50:01.387000",
          "content": "<p>It is heavily based on <a href=\"https://www.kaggle.com/c/humpback-whale-identification/discussion/74647\">https://www.kaggle.com/c/humpback-whale-identification/discussion/74647</a> . That is why my nickname for this competition is \"thanks radek\"</p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 467385,
          "author_name": "Gary",
          "author_url": "",
          "post_date": "2019-02-07T02:06:49.130000",
          "content": "<p>Hi, old-ufo, Which notebook of radek's is your solution based on? Thank you.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 467525,
          "author_name": "old-ufo",
          "author_url": "",
          "post_date": "2019-02-07T09:18:44.613000",
          "content": "<p><a href=\"https://github.com/radekosmulski/whale/blob/master/only_known_train.ipynb\">https://github.com/radekosmulski/whale/blob/master/only_known_train.ipynb</a></p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 467724,
          "author_name": "Gary",
          "author_url": "",
          "post_date": "2019-02-07T16:14:01.137000",
          "content": "<p>Nice, Thanks for your sharing.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 469533,
          "author_name": "TheRedArrow",
          "author_url": "",
          "post_date": "2019-02-11T11:33:26.177000",
          "content": "<p>Thanks for reading this question, I got one thing that I don't understand, how to solve the unbalanced distribution problem if you treat this problem as a Classification task? Thanks again for your time</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "445815": "I was thinking of implementing Siamese Network after trying many ways of classification. But wanted to know how much well it is performing for this task. If you've received better results with it as compared to classification, could you please let us know and what all changes may be beneficial ? ",
    "447676": "I think it can easily get you 0.9+ with some fine-tuning. In fact, I expect to see 0.98+ submission all over the LB in the later stage of this competition.",
    "445831": "I have not tried any model in this competition. I believe that `Siamese` can give you over `0.85LB`."
  }
}