{
  "id": 68163,
  "title": "About geonetwork wrong labeling",
  "url": "/competitions/ga-customer-revenue-prediction/discussion/68163",
  "author_name": "",
  "post_date": "2018-10-10T02:24:03.241477400Z",
  "votes": 1,
  "comment_count": 3,
  "views": 0,
  "content": "<p>I believe there is wrong labeling in geoNetwork infomation. But after some correction, it can help cv at session level while it worsens score on the LB. And it worse the score. </p>\n\n<p>For example for <code>data[data['fullVisitorId']==str(1182594311076605554)]</code>, I am pretty sure the </p>\n\n<blockquote>\n  <p>Cambridge Europe  Northern Europe Ireland Massachusetts</p>\n</blockquote>\n\n<p>is mislabeled and should change to</p>\n\n<blockquote>\n  <p>Cambridge  Americas    Northern America    United States   Massachusetts</p>\n</blockquote>\n\n<p>and there are plenty of these in the whole dataset.</p>\n\n<p>Or another example, <code>data[data['geoNetwork.city']=='Arlington']</code>there is city using same name while they are actually different.</p>\n\n<blockquote>\n  <p>Arlington  Americas    Northern America    United States   Virginia</p>\n</blockquote>\n\n<p>and</p>\n\n<blockquote>\n  <p>Arlington  Americas    Northern America    United States   Texas</p>\n</blockquote>\n\n<p>where I there they should be differentiated by adding prefix or something.</p>\n\n<p>I just can't understand why it almost always lowered my performance. I believe this brings up the accuracy of the dataset and should help the model.</p>\n\n<p>What I did wrong here or in the thinking or can I have some people who spent same time here discuss? Or this is discussed and can i get a link? Thanks in advance</p>",
  "messages": [
    {
      "id": "401394",
      "postDate": "10/10/2018 02:24:03",
      "content": "<p>I believe there is wrong labeling in geoNetwork infomation. But after some correction, it can help cv at session level while it worsens score on the LB. And it worse the score. </p>\n\n<p>For example for <code>data[data['fullVisitorId']==str(1182594311076605554)]</code>, I am pretty sure the </p>\n\n<blockquote>\n  <p>Cambridge Europe  Northern Europe Ireland Massachusetts</p>\n</blockquote>\n\n<p>is mislabeled and should change to</p>\n\n<blockquote>\n  <p>Cambridge  Americas    Northern America    United States   Massachusetts</p>\n</blockquote>\n\n<p>and there are plenty of these in the whole dataset.</p>\n\n<p>Or another example, <code>data[data['geoNetwork.city']=='Arlington']</code>there is city using same name while they are actually different.</p>\n\n<blockquote>\n  <p>Arlington  Americas    Northern America    United States   Virginia</p>\n</blockquote>\n\n<p>and</p>\n\n<blockquote>\n  <p>Arlington  Americas    Northern America    United States   Texas</p>\n</blockquote>\n\n<p>where I there they should be differentiated by adding prefix or something.</p>\n\n<p>I just can't understand why it almost always lowered my performance. I believe this brings up the accuracy of the dataset and should help the model.</p>\n\n<p>What I did wrong here or in the thinking or can I have some people who spent same time here discuss? Or this is discussed and can i get a link? Thanks in advance</p>",
      "rawMarkdown": "I believe there is wrong labeling in geoNetwork infomation. But after some correction, it can help cv at session level while it worsens score on the LB. And it worse the score. \n\nFor example for `data[data['fullVisitorId']==str(1182594311076605554)]`, I am pretty sure the \n\n&gt; Cambridge\tEurope\tNorthern Europe\tIreland\tMassachusetts\n\nis mislabeled and should change to\n&gt;Cambridge\tAmericas\tNorthern America\tUnited States\tMassachusetts\n\nand there are plenty of these in the whole dataset.\n\nOr another example, `data[data['geoNetwork.city']=='Arlington']`there is city using same name while they are actually different.\n&gt;Arlington\tAmericas\tNorthern America\tUnited States\tVirginia\n\nand\n\n&gt;Arlington\tAmericas\tNorthern America\tUnited States\tTexas\n\nwhere I there they should be differentiated by adding prefix or something.\n\nI just can't understand why it almost always lowered my performance. I believe this brings up the accuracy of the dataset and should help the model.\n\nWhat I did wrong here or in the thinking or can I have some people who spent same time here discuss? Or this is discussed and can i get a link? Thanks in advance",
      "votes": null
    },
    {
      "id": "401433",
      "postDate": "10/10/2018 04:33:50",
      "content": "<p>You are right, there are a lot of mislabeling.</p>\n\n<p>My guess: a lot of mislabels are US city mislabeled to others country, which lower their scores.  In the public LB, lower revenue prediction is somewhat helpful?</p>",
      "rawMarkdown": "You are right, there are a lot of mislabeling.\n\nMy guess: a lot of mislabels are US city mislabeled to others country, which lower their scores.  In the public LB, lower revenue prediction is somewhat helpful?",
      "votes": null
    },
    {
      "id": "401474",
      "postDate": "10/10/2018 06:18:48",
      "content": "<p>I have explored this issue in my <a href=\"https://www.kaggle.com/mithrillion/fixing-conflicts-in-the-geonetwork-attributes\">kernel</a>. Basically, (country, subcontinent, continent) and (city, metro, region) are two groups that almost always agree with each other within the group itself, but there can be conflicts between groups. My guess is that the city level data probably comes from some form of device geo tracking whereas the country level data always agrees with \"domain\" (likely ISP), so it probably comes from IP address. I guess when people use proxy or when IP location is inaccurate, these two can be different, and a conflict occurs.\nAs for predictions, I still have not found a consistent distinction between fixing and not fixing the conflicts. Guess the number of affected rows is rather small compared to the whole set.</p>",
      "rawMarkdown": "I have explored this issue in my [kernel][1]. Basically, (country, subcontinent, continent) and (city, metro, region) are two groups that almost always agree with each other within the group itself, but there can be conflicts between groups. My guess is that the city level data probably comes from some form of device geo tracking whereas the country level data always agrees with \"domain\" (likely ISP), so it probably comes from IP address. I guess when people use proxy or when IP location is inaccurate, these two can be different, and a conflict occurs.\nAs for predictions, I still have not found a consistent distinction between fixing and not fixing the conflicts. Guess the number of affected rows is rather small compared to the whole set.\n\n\n  [1]: https://www.kaggle.com/mithrillion/fixing-conflicts-in-the-geonetwork-attributes",
      "votes": null
    },
    {
      "id": "401953",
      "postDate": "10/10/2018 23:35:12",
      "content": "<p>Similar discussion is <a href=\"https://www.kaggle.com/c/ga-customer-revenue-prediction/discussion/66627\">here</a>.</p>\n\n<p>I also spent some time on this topic, but, for now, I didn't find any useful insights except one thing as Mithrillion said: There are two groups on geoNetwork, which are [continent, subContinent, country, networkDomain] and [region, city, metro].</p>",
      "rawMarkdown": "Similar discussion is [here](https://www.kaggle.com/c/ga-customer-revenue-prediction/discussion/66627).\n\nI also spent some time on this topic, but, for now, I didn't find any useful insights except one thing as Mithrillion said: There are two groups on geoNetwork, which are [continent, subContinent, country, networkDomain] and [region, city, metro].",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 401433,
      "author_name": "echowuhao",
      "author_url": "",
      "post_date": "10/10/2018 04:33:50",
      "content": "<p>You are right, there are a lot of mislabeling.</p>\n\n<p>My guess: a lot of mislabels are US city mislabeled to others country, which lower their scores.  In the public LB, lower revenue prediction is somewhat helpful?</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 401474,
      "author_name": "mithrillion",
      "author_url": "",
      "post_date": "10/10/2018 06:18:48",
      "content": "<p>I have explored this issue in my <a href=\"https://www.kaggle.com/mithrillion/fixing-conflicts-in-the-geonetwork-attributes\">kernel</a>. Basically, (country, subcontinent, continent) and (city, metro, region) are two groups that almost always agree with each other within the group itself, but there can be conflicts between groups. My guess is that the city level data probably comes from some form of device geo tracking whereas the country level data always agrees with \"domain\" (likely ISP), so it probably comes from IP address. I guess when people use proxy or when IP location is inaccurate, these two can be different, and a conflict occurs.\nAs for predictions, I still have not found a consistent distinction between fixing and not fixing the conflicts. Guess the number of affected rows is rather small compared to the whole set.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 401953,
      "author_name": "takaishikawa",
      "author_url": "",
      "post_date": "10/10/2018 23:35:12",
      "content": "<p>Similar discussion is <a href=\"https://www.kaggle.com/c/ga-customer-revenue-prediction/discussion/66627\">here</a>.</p>\n\n<p>I also spent some time on this topic, but, for now, I didn't find any useful insights except one thing as Mithrillion said: There are two groups on geoNetwork, which are [continent, subContinent, country, networkDomain] and [region, city, metro].</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "401394": "I believe there is wrong labeling in geoNetwork infomation. But after some correction, it can help cv at session level while it worsens score on the LB. And it worse the score. \n\nFor example for `data[data['fullVisitorId']==str(1182594311076605554)]`, I am pretty sure the \n\n&gt; Cambridge\tEurope\tNorthern Europe\tIreland\tMassachusetts\n\nis mislabeled and should change to\n&gt;Cambridge\tAmericas\tNorthern America\tUnited States\tMassachusetts\n\nand there are plenty of these in the whole dataset.\n\nOr another example, `data[data['geoNetwork.city']=='Arlington']`there is city using same name while they are actually different.\n&gt;Arlington\tAmericas\tNorthern America\tUnited States\tVirginia\n\nand\n\n&gt;Arlington\tAmericas\tNorthern America\tUnited States\tTexas\n\nwhere I there they should be differentiated by adding prefix or something.\n\nI just can't understand why it almost always lowered my performance. I believe this brings up the accuracy of the dataset and should help the model.\n\nWhat I did wrong here or in the thinking or can I have some people who spent same time here discuss? Or this is discussed and can i get a link? Thanks in advance",
    "401433": "You are right, there are a lot of mislabeling.\n\nMy guess: a lot of mislabels are US city mislabeled to others country, which lower their scores.  In the public LB, lower revenue prediction is somewhat helpful?",
    "401474": "I have explored this issue in my [kernel][1]. Basically, (country, subcontinent, continent) and (city, metro, region) are two groups that almost always agree with each other within the group itself, but there can be conflicts between groups. My guess is that the city level data probably comes from some form of device geo tracking whereas the country level data always agrees with \"domain\" (likely ISP), so it probably comes from IP address. I guess when people use proxy or when IP location is inaccurate, these two can be different, and a conflict occurs.\nAs for predictions, I still have not found a consistent distinction between fixing and not fixing the conflicts. Guess the number of affected rows is rather small compared to the whole set.\n\n\n  [1]: https://www.kaggle.com/mithrillion/fixing-conflicts-in-the-geonetwork-attributes",
    "401953": "Similar discussion is [here](https://www.kaggle.com/c/ga-customer-revenue-prediction/discussion/66627).\n\nI also spent some time on this topic, but, for now, I didn't find any useful insights except one thing as Mithrillion said: There are two groups on geoNetwork, which are [continent, subContinent, country, networkDomain] and [region, city, metro]."
  },
  "source": "meta"
}