{
  "id": 314192,
  "title": "Is the prediction time same for all the customer or different for each customer?",
  "url": "/competitions/h-and-m-personalized-fashion-recommendations/discussion/314192",
  "author_name": "",
  "post_date": "2022-03-21T12:25:17.288145800Z",
  "votes": 3,
  "comment_count": 7,
  "views": 0,
  "content": "<p>It is being said that \"For each&nbsp;customer_id&nbsp;observed in the training data, you may predict up to 12 labels for the&nbsp;article_id, which is the predicted items a customer will buy in the next 7-day period after the training time period.\"</p>\n<p>The max of training time period is 22nd Sep 2020. but not all the customer has done the transaction on 22nd Sep. What will be the prediction time period. </p>\n<ol>\n<li>For each customer different prediction time<br>\nor</li>\n<li>The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customer. </li>\n</ol>",
  "messages": [
    {
      "id": "1730586",
      "postDate": "03/21/2022 12:25:17",
      "content": "<p>It is being said that \"For each&nbsp;customer_id&nbsp;observed in the training data, you may predict up to 12 labels for the&nbsp;article_id, which is the predicted items a customer will buy in the next 7-day period after the training time period.\"</p>\n<p>The max of training time period is 22nd Sep 2020. but not all the customer has done the transaction on 22nd Sep. What will be the prediction time period. </p>\n<ol>\n<li>For each customer different prediction time<br>\nor</li>\n<li>The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customer. </li>\n</ol>",
      "rawMarkdown": "It is being said that \"For each customer_id observed in the training data, you may predict up to 12 labels for the article_id, which is the predicted items a customer will buy in the next 7-day period after the training time period.\"\n\nThe max of training time period is 22nd Sep 2020. but not all the customer has done the transaction on 22nd Sep. What will be the prediction time period. \n1. For each customer different prediction time\nor\n2. The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customer.",
      "votes": null
    },
    {
      "id": "1730590",
      "postDate": "03/21/2022 12:36:47",
      "content": "<p>The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customers</p>",
      "rawMarkdown": "The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customers",
      "votes": null
    },
    {
      "id": "1731614",
      "postDate": "03/22/2022 14:38:59",
      "content": "<p>So we do not need to include the date/time of the predicted transactions. We only supply the customer_ID and the article_ids that the customer will buy. The order of the article_ids does not matter, and the max number we can include is 12.</p>",
      "rawMarkdown": "So we do not need to include the date/time of the predicted transactions. We only supply the customer_ID and the article_ids that the customer will buy. The order of the article_ids does not matter, and the max number we can include is 12.",
      "votes": null
    },
    {
      "id": "1731716",
      "postDate": "03/22/2022 16:12:16",
      "content": "<p>Order of the article ids does matter</p>",
      "rawMarkdown": "Order of the article ids does matter",
      "votes": null
    },
    {
      "id": "1732142",
      "postDate": "03/23/2022 04:07:53",
      "content": "<p>Order of the article_id is very much important. please see the <a href=\"https://www.kaggle.com/competitions/h-and-m-personalized-fashion-recommendations/overview/evaluation\" target=\"_blank\">evaluation</a></p>",
      "rawMarkdown": "Order of the article_id is very much important. please see the [evaluation](https://www.kaggle.com/competitions/h-and-m-personalized-fashion-recommendations/overview/evaluation)",
      "votes": null
    },
    {
      "id": "1733682",
      "postDate": "03/24/2022 14:10:43",
      "content": "<p>I have read the evaluation and I also looked at this notebook for MAP:</p>\n<p><a href=\"https://www.kaggle.com/code/debarshichanda/understanding-mean-average-precision/notebook\" target=\"_blank\">https://www.kaggle.com/code/debarshichanda/understanding-mean-average-precision/notebook</a></p>\n<p>Are you sure that order matters when computing MAP, could you explain how or refer me to something that explains it more clearly.</p>",
      "rawMarkdown": "I have read the evaluation and I also looked at this notebook for MAP:\n\nhttps://www.kaggle.com/code/debarshichanda/understanding-mean-average-precision/notebook\n\nAre you sure that order matters when computing MAP, could you explain how or refer me to something that explains it more clearly.",
      "votes": null
    },
    {
      "id": "1733870",
      "postDate": "03/24/2022 17:18:42",
      "content": "<p>Order does not matter, if a customer bought 12 articles and all of your 12 predictions are right for this customer.</p>\n<p>Let's assume the customer bought 12 articles and only one of your 12 predictions is wrong.</p>\n<p>If your very first prediction is wrong your prediction will be penalized for every article:<br>\nP@1=0, P@2=0.5, P@3=0.66, …, P@12=0.92</p>\n<p>If only your last prediction is wrong you get a penalization only for the last article:<br>\nP@1=1, P@2=1, P@3=1, …, P@12=0.92</p>",
      "rawMarkdown": "Order does not matter, if a customer bought 12 articles and all of your 12 predictions are right for this customer.\n\nLet's assume the customer bought 12 articles and only one of your 12 predictions is wrong.\n\nIf your very first prediction is wrong your prediction will be penalized for every article:\nP@1=0, P@2=0.5, P@3=0.66, ..., P@12=0.92\n\nIf only your last prediction is wrong you get a penalization only for the last article:\nP@1=1, P@2=1, P@3=1, ..., P@12=0.92",
      "votes": null
    },
    {
      "id": "1733955",
      "postDate": "03/24/2022 19:56:38",
      "content": "<p>Basically, if the customer bought <strong>m</strong> articles(ground truth) (<strong>m&gt;0</strong>), then the first <strong>n</strong> predictions(<strong>n=min(m,12)</strong>), should be match the <strong>m</strong> articles in any order. If any of first <strong>n</strong> articles are incorrect, your score will be less than it would/could have been.</p>\n<p>To give additional perspective, for a customer buying 12 or more items,</p>\n<ul>\n<li>1 item wrong, placed first - MAP@12 = 0.9931</li>\n<li>1 Item wrong, placed last - MAP@12 = 0.7414</li>\n<li>Only 1 item correct, placed last - MAP@12 = 0.0069 (some people got this)</li>\n<li>Only 2 item correct, placed last - MAP@12 = 0.0215 (comparable to best score on public notebooks)</li>\n<li>Only 3 item correct, placed last - MAP@12 = 0.0443 (more than current leaderboard - 0.0342)</li>\n</ul>",
      "rawMarkdown": "Basically, if the customer bought **m** articles(ground truth) (**m>0**), then the first **n** predictions(**n=min(m,12)**), should be match the **m** articles in any order. If any of first **n** articles are incorrect, your score will be less than it would/could have been.\n\nTo give additional perspective, for a customer buying 12 or more items,\n- 1 item wrong, placed first - MAP@12 = 0.9931\n- 1 Item wrong, placed last - MAP@12 = 0.7414\n- Only 1 item correct, placed last - MAP@12 = 0.0069 (some people got this)\n- Only 2 item correct, placed last - MAP@12 = 0.0215 (comparable to best score on public notebooks)\n- Only 3 item correct, placed last - MAP@12 = 0.0443 (more than current leaderboard - 0.0342)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1730590,
      "author_name": "atulverma",
      "author_url": "",
      "post_date": "03/21/2022 12:36:47",
      "content": "<p>The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customers</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1731614,
      "author_name": "peterwarren",
      "author_url": "",
      "post_date": "03/22/2022 14:38:59",
      "content": "<p>So we do not need to include the date/time of the predicted transactions. We only supply the customer_ID and the article_ids that the customer will buy. The order of the article_ids does not matter, and the max number we can include is 12.</p>",
      "votes": null,
      "replies": [
        {
          "id": 1731716,
          "author_name": "atulverma",
          "author_url": "",
          "post_date": "03/22/2022 16:12:16",
          "content": "<p>Order of the article ids does matter</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1732142,
          "author_name": "pankajkumar",
          "author_url": "",
          "post_date": "03/23/2022 04:07:53",
          "content": "<p>Order of the article_id is very much important. please see the <a href=\"https://www.kaggle.com/competitions/h-and-m-personalized-fashion-recommendations/overview/evaluation\" target=\"_blank\">evaluation</a></p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1733682,
          "author_name": "peterwarren",
          "author_url": "",
          "post_date": "03/24/2022 14:10:43",
          "content": "<p>I have read the evaluation and I also looked at this notebook for MAP:</p>\n<p><a href=\"https://www.kaggle.com/code/debarshichanda/understanding-mean-average-precision/notebook\" target=\"_blank\">https://www.kaggle.com/code/debarshichanda/understanding-mean-average-precision/notebook</a></p>\n<p>Are you sure that order matters when computing MAP, could you explain how or refer me to something that explains it more clearly.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1733870,
          "author_name": "tbierhance",
          "author_url": "",
          "post_date": "03/24/2022 17:18:42",
          "content": "<p>Order does not matter, if a customer bought 12 articles and all of your 12 predictions are right for this customer.</p>\n<p>Let's assume the customer bought 12 articles and only one of your 12 predictions is wrong.</p>\n<p>If your very first prediction is wrong your prediction will be penalized for every article:<br>\nP@1=0, P@2=0.5, P@3=0.66, …, P@12=0.92</p>\n<p>If only your last prediction is wrong you get a penalization only for the last article:<br>\nP@1=1, P@2=1, P@3=1, …, P@12=0.92</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1733955,
          "author_name": "atulverma",
          "author_url": "",
          "post_date": "03/24/2022 19:56:38",
          "content": "<p>Basically, if the customer bought <strong>m</strong> articles(ground truth) (<strong>m&gt;0</strong>), then the first <strong>n</strong> predictions(<strong>n=min(m,12)</strong>), should be match the <strong>m</strong> articles in any order. If any of first <strong>n</strong> articles are incorrect, your score will be less than it would/could have been.</p>\n<p>To give additional perspective, for a customer buying 12 or more items,</p>\n<ul>\n<li>1 item wrong, placed first - MAP@12 = 0.9931</li>\n<li>1 Item wrong, placed last - MAP@12 = 0.7414</li>\n<li>Only 1 item correct, placed last - MAP@12 = 0.0069 (some people got this)</li>\n<li>Only 2 item correct, placed last - MAP@12 = 0.0215 (comparable to best score on public notebooks)</li>\n<li>Only 3 item correct, placed last - MAP@12 = 0.0443 (more than current leaderboard - 0.0342)</li>\n</ul>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1730586": "It is being said that \"For each customer_id observed in the training data, you may predict up to 12 labels for the article_id, which is the predicted items a customer will buy in the next 7-day period after the training time period.\"\n\nThe max of training time period is 22nd Sep 2020. but not all the customer has done the transaction on 22nd Sep. What will be the prediction time period. \n1. For each customer different prediction time\nor\n2. The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customer.",
    "1730590": "The same prediction time period 23rd Sep2020 to 29th Sep2020 for all customers",
    "1731614": "So we do not need to include the date/time of the predicted transactions. We only supply the customer_ID and the article_ids that the customer will buy. The order of the article_ids does not matter, and the max number we can include is 12.",
    "1731716": "Order of the article ids does matter",
    "1732142": "Order of the article_id is very much important. please see the [evaluation](https://www.kaggle.com/competitions/h-and-m-personalized-fashion-recommendations/overview/evaluation)",
    "1733682": "I have read the evaluation and I also looked at this notebook for MAP:\n\nhttps://www.kaggle.com/code/debarshichanda/understanding-mean-average-precision/notebook\n\nAre you sure that order matters when computing MAP, could you explain how or refer me to something that explains it more clearly.",
    "1733870": "Order does not matter, if a customer bought 12 articles and all of your 12 predictions are right for this customer.\n\nLet's assume the customer bought 12 articles and only one of your 12 predictions is wrong.\n\nIf your very first prediction is wrong your prediction will be penalized for every article:\nP@1=0, P@2=0.5, P@3=0.66, ..., P@12=0.92\n\nIf only your last prediction is wrong you get a penalization only for the last article:\nP@1=1, P@2=1, P@3=1, ..., P@12=0.92",
    "1733955": "Basically, if the customer bought **m** articles(ground truth) (**m>0**), then the first **n** predictions(**n=min(m,12)**), should be match the **m** articles in any order. If any of first **n** articles are incorrect, your score will be less than it would/could have been.\n\nTo give additional perspective, for a customer buying 12 or more items,\n- 1 item wrong, placed first - MAP@12 = 0.9931\n- 1 Item wrong, placed last - MAP@12 = 0.7414\n- Only 1 item correct, placed last - MAP@12 = 0.0069 (some people got this)\n- Only 2 item correct, placed last - MAP@12 = 0.0215 (comparable to best score on public notebooks)\n- Only 3 item correct, placed last - MAP@12 = 0.0443 (more than current leaderboard - 0.0342)"
  },
  "source": "meta"
}