{
  "id": 78058,
  "title": "Some tips",
  "url": "/competitions/elo-merchant-category-recommendation/discussion/78058",
  "author_name": "Finlay",
  "post_date": "2019-01-19T10:10:55",
  "votes": 37,
  "comment_count": 3,
  "views": 0,
  "content": "<p>In <code>historical_transactions/new_merchant_transactions</code> file:</p>\n\n<ol>\n<li><p><code>installments</code> -1 or 999 mean <code>nan</code>.</p></li>\n<li><p><code>Category 3</code> is based on how the payment is made.</p></li>\n<li><p><code>Category 2</code> is based on the state_id.</p></li>\n<li><p><code>Category 1</code> is influenced by the city_id.</p></li>\n<li><p><code>purchase_amount</code> has outlier data.</p></li>\n<li><p>etc...</p></li>\n</ol>\n\n<p>Some useful link:</p>\n\n<ul>\n<li><a href=\"https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/75034\">https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/75034</a></li>\n<li><a href=\"https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/72993\">https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/72993</a></li>\n<li><a href=\"https://www.kaggle.com/tapioca/category-1-2-3-in-transactions\">https://www.kaggle.com/tapioca/category-1-2-3-in-transactions</a></li>\n</ul>",
  "messages": [
    {
      "id": 458306,
      "postDate": "2019-01-19T10:10:55Z",
      "content": "<p>In <code>historical_transactions/new_merchant_transactions</code> file:</p>\n\n<ol>\n<li><p><code>installments</code> -1 or 999 mean <code>nan</code>.</p></li>\n<li><p><code>Category 3</code> is based on how the payment is made.</p></li>\n<li><p><code>Category 2</code> is based on the state_id.</p></li>\n<li><p><code>Category 1</code> is influenced by the city_id.</p></li>\n<li><p><code>purchase_amount</code> has outlier data.</p></li>\n<li><p>etc...</p></li>\n</ol>\n\n<p>Some useful link:</p>\n\n<ul>\n<li><a href=\"https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/75034\">https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/75034</a></li>\n<li><a href=\"https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/72993\">https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/72993</a></li>\n<li><a href=\"https://www.kaggle.com/tapioca/category-1-2-3-in-transactions\">https://www.kaggle.com/tapioca/category-1-2-3-in-transactions</a></li>\n</ul>",
      "rawMarkdown": "In `historical_transactions/new_merchant_transactions` file:\n\n1. `installments` -1 or 999 mean `nan`.\n\n2. `Category 3` is based on how the payment is made.\n\n3. `Category 2` is based on the state_id.\n\n4. `Category 1` is influenced by the city_id.\n\n5. `purchase_amount` has outlier data.\n\n6. etc...\n\nSome useful link:\n\n- https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/75034\n- https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/72993\n- https://www.kaggle.com/tapioca/category-1-2-3-in-transactions",
      "votes": 36
    },
    {
      "id": 461311,
      "postDate": "2019-01-25T18:34:08.850Z",
      "content": "<p>For the purchase amount\nI denormalize it (add min(purchase_amount)+1) in order to make all values positive. Then the sum becomes more representative of a lavish life of a cardholder.\nAlso a ratio to the total amount (say - amount spent on each merchant_category to the total amount spent by the cardholder) becomes meaningful. And no divide by zero problem.</p>",
      "rawMarkdown": "For the purchase amount\nI denormalize it (add min(purchase_amount)+1) in order to make all values positive. Then the sum becomes more representative of a lavish life of a cardholder.\nAlso a ratio to the total amount (say - amount spent on each merchant_category to the total amount spent by the cardholder) becomes meaningful. And no divide by zero problem."
    },
    {
      "id": 459609,
      "postDate": "2019-01-22T04:41:23.620Z",
      "content": "<p>Re: purchase amount\nSome ideas:</p>\n\n<ol>\n<li>transform purchase amount into quantiles and treat it as a categorical variable </li>\n<li>cutoff the outliers by setting value of all outliers to a large number at the higher part of the range</li>\n</ol>",
      "rawMarkdown": "Re: purchase amount\nSome ideas:\n\n1. transform purchase amount into quantiles and treat it as a categorical variable \n2. cutoff the outliers by setting value of all outliers to a large number at the higher part of the range"
    },
    {
      "id": 458390,
      "postDate": "2019-01-19T13:53:17.963Z",
      "rawMarkdown": "",
      "votes": 3,
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 461311,
      "author_name": "Costa.Medvedev",
      "author_url": "",
      "post_date": "2019-01-25T18:34:08.850000",
      "content": "<p>For the purchase amount\nI denormalize it (add min(purchase_amount)+1) in order to make all values positive. Then the sum becomes more representative of a lavish life of a cardholder.\nAlso a ratio to the total amount (say - amount spent on each merchant_category to the total amount spent by the cardholder) becomes meaningful. And no divide by zero problem.</p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 459609,
      "author_name": "sergeman",
      "author_url": "",
      "post_date": "2019-01-22T04:41:23.620000",
      "content": "<p>Re: purchase amount\nSome ideas:</p>\n\n<ol>\n<li>transform purchase amount into quantiles and treat it as a categorical variable </li>\n<li>cutoff the outliers by setting value of all outliers to a large number at the higher part of the range</li>\n</ol>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 458390,
      "author_name": "",
      "author_url": "",
      "post_date": "2019-01-19T13:53:17.963000",
      "content": "",
      "votes": 3,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "458306": "In `historical_transactions/new_merchant_transactions` file:\n\n1. `installments` -1 or 999 mean `nan`.\n\n2. `Category 3` is based on how the payment is made.\n\n3. `Category 2` is based on the state_id.\n\n4. `Category 1` is influenced by the city_id.\n\n5. `purchase_amount` has outlier data.\n\n6. etc...\n\nSome useful link:\n\n- https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/75034\n- https://www.kaggle.com/c/elo-merchant-category-recommendation/discussion/72993\n- https://www.kaggle.com/tapioca/category-1-2-3-in-transactions",
    "461311": "For the purchase amount\nI denormalize it (add min(purchase_amount)+1) in order to make all values positive. Then the sum becomes more representative of a lavish life of a cardholder.\nAlso a ratio to the total amount (say - amount spent on each merchant_category to the total amount spent by the cardholder) becomes meaningful. And no divide by zero problem.",
    "459609": "Re: purchase amount\nSome ideas:\n\n1. transform purchase amount into quantiles and treat it as a categorical variable \n2. cutoff the outliers by setting value of all outliers to a large number at the higher part of the range",
    "458390": ""
  }
}