{
  "id": 3654,
  "title": "MAP high values",
  "url": "/competitions/event-recommendation-engine-challenge/discussion/3654",
  "author_name": "",
  "post_date": "2013-01-21T21:17:42.377Z",
  "votes": null,
  "comment_count": 10,
  "views": 2843,
  "content": "<p>Hi,</p>\r\n<p>I follow a standard procedure, where I divide my dataset into two blocks - one for training and for validation. I select rows in such way, that validation sets has unseen users. For metrics I took the code from here:</p>\r\n<p>https://github.com/benhamner/Metrics/blob/master/R/R/metrics.r#L145</p>\r\n<p>I understand how does it works, but I can't get why validation gives my high values such as &gt;.95</p>\r\n<p>Any idea what can be wrong or any insigths how to order dataset for validation?</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks,</p>\r\n<p>Dzidas</p>",
  "messages": [
    {
      "id": "19564",
      "postDate": "01/21/2013 21:17:42",
      "content": "<p>Hi,</p>\r\n<p>I follow a standard procedure, where I divide my dataset into two blocks - one for training and for validation. I select rows in such way, that validation sets has unseen users. For metrics I took the code from here:</p>\r\n<p>https://github.com/benhamner/Metrics/blob/master/R/R/metrics.r#L145</p>\r\n<p>I understand how does it works, but I can't get why validation gives my high values such as &gt;.95</p>\r\n<p>Any idea what can be wrong or any insigths how to order dataset for validation?</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks,</p>\r\n<p>Dzidas</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19706",
      "postDate": "01/26/2013 09:49:32",
      "content": "<p><span>Hi,</span></p>\r\n<p>&nbsp;</p>\r\n<p><span>I have the same problem (also using Rmetrics).</span></p>\r\n<p>&nbsp;</p>\r\n<p><span>Example:</span></p>\r\n<pre><span style=\"white-space:normal\">&gt;</span>apk(200, c(1918771225, 1502284248, 2529072432, 3072478280, 1390707377, 1532377761),&nbsp;<span style=\"line-height:1.4em\">c(3072478280, 1532377761, 1502284248, 1918771225, 1390707377, 2529072432))</span></pre>\r\n<p><span>[1] 1</span></p>\r\n<p>&nbsp;</p>\r\n<p><span>is this correct?</span></p>\r\n<p><span><br>\r\n</span></p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19707",
      "postDate": "01/26/2013 10:04:22",
      "content": "<p>Yes, it's correct from the definition of apk.</p>\r\n<p>&nbsp;</p>\r\n<p>When you evaluate your score, you should pass only &quot;interested&quot; list to actual list.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19708",
      "postDate": "01/26/2013 10:07:14",
      "content": "<p>Thank you n_m. By the way, i am also living in Japan (tokyo). Where are you located?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19709",
      "postDate": "01/26/2013 10:13:04",
      "content": "<p>The same, Tokyo. </p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19712",
      "postDate": "01/26/2013 15:31:41",
      "content": "<p>n_m,</p>\r\n<p>yes,I found that latter.<br>\r\nI pass only &quot;interested&quot; column and now I have very low score at validation stage 0.28 vs public&gt;.65</p>\r\n<p>Do you have similar deviation on your validation set or is it close to public score?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19714",
      "postDate": "01/26/2013 15:41:41",
      "content": "<p>Quite close to leaderboard score though cv scores have a little bit large sd (0.01 ~ 0.02). So I suppose your code have some bug in it. What exactly your input (like class) to mapk? Could you post codes?</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19725",
      "postDate": "01/26/2013 20:57:54",
      "content": "<p>A very high accuracy score almost always means a target leak. Your model building process is incorporating information from the held-out data, perhaps in an indirect way, which it shouldn't know.</p>\r\n<p>For example, one of my first attempts was to build a simple CF model over all the data. The result was nearly 100% accuracy. I quickly realized that the model had also read the data held out as validation data, so of course it got the right answers every\r\n time.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19736",
      "postDate": "01/27/2013 08:37:13",
      "content": "<p>n_m,<br>\r\nthanks. My input had trailing spaces. After fixing that my cv score is &#43;0.02 than public, which is good.\r\n</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19737",
      "postDate": "01/27/2013 08:43:03",
      "content": "<p>At first, I thought about leaking something as well. However the problem was how did I build the outcome. As n_m pointed, you need to take into account only &quot;interested&quot; score. Need to say, I had a bug in my code, but it actually depresed my cv score.</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "19738",
      "postDate": "01/27/2013 14:46:13",
      "content": "<p>Dzidas,</p>\r\n<p>you're welcome. I'm quite surprised to hear that you're achieving good score w/o accurate validation:) You must be using great features.</p>",
      "rawMarkdown": "",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 19706,
      "author_name": "ildefons",
      "author_url": "",
      "post_date": "01/26/2013 09:49:32",
      "content": "<p><span>Hi,</span></p>\r\n<p>&nbsp;</p>\r\n<p><span>I have the same problem (also using Rmetrics).</span></p>\r\n<p>&nbsp;</p>\r\n<p><span>Example:</span></p>\r\n<pre><span style=\"white-space:normal\">&gt;</span>apk(200, c(1918771225, 1502284248, 2529072432, 3072478280, 1390707377, 1532377761),&nbsp;<span style=\"line-height:1.4em\">c(3072478280, 1532377761, 1502284248, 1918771225, 1390707377, 2529072432))</span></pre>\r\n<p><span>[1] 1</span></p>\r\n<p>&nbsp;</p>\r\n<p><span>is this correct?</span></p>\r\n<p><span><br>\r\n</span></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19707,
      "author_name": "naokazumizuta",
      "author_url": "",
      "post_date": "01/26/2013 10:04:22",
      "content": "<p>Yes, it's correct from the definition of apk.</p>\r\n<p>&nbsp;</p>\r\n<p>When you evaluate your score, you should pass only &quot;interested&quot; list to actual list.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19708,
      "author_name": "ildefons",
      "author_url": "",
      "post_date": "01/26/2013 10:07:14",
      "content": "<p>Thank you n_m. By the way, i am also living in Japan (tokyo). Where are you located?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19709,
      "author_name": "naokazumizuta",
      "author_url": "",
      "post_date": "01/26/2013 10:13:04",
      "content": "<p>The same, Tokyo. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19712,
      "author_name": "dzidas",
      "author_url": "",
      "post_date": "01/26/2013 15:31:41",
      "content": "<p>n_m,</p>\r\n<p>yes,I found that latter.<br>\r\nI pass only &quot;interested&quot; column and now I have very low score at validation stage 0.28 vs public&gt;.65</p>\r\n<p>Do you have similar deviation on your validation set or is it close to public score?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19714,
      "author_name": "naokazumizuta",
      "author_url": "",
      "post_date": "01/26/2013 15:41:41",
      "content": "<p>Quite close to leaderboard score though cv scores have a little bit large sd (0.01 ~ 0.02). So I suppose your code have some bug in it. What exactly your input (like class) to mapk? Could you post codes?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19725,
      "author_name": "",
      "author_url": "",
      "post_date": "01/26/2013 20:57:54",
      "content": "<p>A very high accuracy score almost always means a target leak. Your model building process is incorporating information from the held-out data, perhaps in an indirect way, which it shouldn't know.</p>\r\n<p>For example, one of my first attempts was to build a simple CF model over all the data. The result was nearly 100% accuracy. I quickly realized that the model had also read the data held out as validation data, so of course it got the right answers every\r\n time.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19736,
      "author_name": "dzidas",
      "author_url": "",
      "post_date": "01/27/2013 08:37:13",
      "content": "<p>n_m,<br>\r\nthanks. My input had trailing spaces. After fixing that my cv score is &#43;0.02 than public, which is good.\r\n</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19737,
      "author_name": "dzidas",
      "author_url": "",
      "post_date": "01/27/2013 08:43:03",
      "content": "<p>At first, I thought about leaking something as well. However the problem was how did I build the outcome. As n_m pointed, you need to take into account only &quot;interested&quot; score. Need to say, I had a bug in my code, but it actually depresed my cv score.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 19738,
      "author_name": "naokazumizuta",
      "author_url": "",
      "post_date": "01/27/2013 14:46:13",
      "content": "<p>Dzidas,</p>\r\n<p>you're welcome. I'm quite surprised to hear that you're achieving good score w/o accurate validation:) You must be using great features.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "19564": "",
    "19706": "",
    "19707": "",
    "19708": "",
    "19709": "",
    "19712": "",
    "19714": "",
    "19725": "",
    "19736": "",
    "19737": "",
    "19738": ""
  },
  "source": "meta"
}