{
  "id": 74528,
  "title": "Kernel Died on using Standard Scaler on test dataset",
  "url": "/competitions/PLAsTiCC-2018/discussion/74528",
  "author_name": "",
  "post_date": "2018-12-13T06:32:26.153677600Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>My kernel dies on using standard scaler on test data. The code works fine on train data. \nThis is the code I'm using taken from some kernel:\n   ss = StandardScaler()\n   ss.scale_ = scl\n   ss.mean_ = mn\n   full_data.loc[:,features] = ss.transform(full_data.loc[:,features])\nAny fix?</p>",
  "messages": [
    {
      "id": "438128",
      "postDate": "12/13/2018 06:32:26",
      "content": "<p>My kernel dies on using standard scaler on test data. The code works fine on train data. \nThis is the code I'm using taken from some kernel:\n   ss = StandardScaler()\n   ss.scale_ = scl\n   ss.mean_ = mn\n   full_data.loc[:,features] = ss.transform(full_data.loc[:,features])\nAny fix?</p>",
      "rawMarkdown": "My kernel dies on using standard scaler on test data. The code works fine on train data. \nThis is the code I'm using taken from some kernel:\n   ss = StandardScaler()\n   ss.scale_ = scl\n   ss.mean_ = mn\n   full_data.loc[:,features] = ss.transform(full_data.loc[:,features])\nAny fix?",
      "votes": null
    },
    {
      "id": "438134",
      "postDate": "12/13/2018 06:41:55",
      "content": "<p>You probably have NaN in your data.</p>",
      "rawMarkdown": "You probably have NaN in your data.",
      "votes": null
    },
    {
      "id": "438289",
      "postDate": "12/13/2018 12:23:25",
      "content": "<p>That worked. Thanks.</p>",
      "rawMarkdown": "That worked. Thanks.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 438134,
      "author_name": "cpmpml",
      "author_url": "",
      "post_date": "12/13/2018 06:41:55",
      "content": "<p>You probably have NaN in your data.</p>",
      "votes": null,
      "replies": [
        {
          "id": 438289,
          "author_name": "ks2019",
          "author_url": "",
          "post_date": "12/13/2018 12:23:25",
          "content": "<p>That worked. Thanks.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "438128": "My kernel dies on using standard scaler on test data. The code works fine on train data. \nThis is the code I'm using taken from some kernel:\n   ss = StandardScaler()\n   ss.scale_ = scl\n   ss.mean_ = mn\n   full_data.loc[:,features] = ss.transform(full_data.loc[:,features])\nAny fix?",
    "438134": "You probably have NaN in your data.",
    "438289": "That worked. Thanks."
  },
  "source": "meta"
}