{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1935","repository_url":"https://api.github.com/repos/Microsoft/LightGBM","labels_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1935/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1935/comments","events_url":"https://api.github.com/repos/Microsoft/LightGBM/issues/1935/events","html_url":"https://github.com/Microsoft/LightGBM/issues/1935","id":395612381,"node_id":"MDU6SXNzdWUzOTU2MTIzODE=","number":1935,"title":"JSON decoder error when using Shap.TreeExplainer on lightGBM predictor","user":{"login":"kalkairis","id":23031132,"node_id":"MDQ6VXNlcjIzMDMxMTMy","avatar_url":"https://avatars3.githubusercontent.com/u/23031132?v=4","gravatar_id":"","url":"https://api.github.com/users/kalkairis","html_url":"https://github.com/kalkairis","followers_url":"https://api.github.com/users/kalkairis/followers","following_url":"https://api.github.com/users/kalkairis/following{/other_user}","gists_url":"https://api.github.com/users/kalkairis/gists{/gist_id}","starred_url":"https://api.github.com/users/kalkairis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalkairis/subscriptions","organizations_url":"https://api.github.com/users/kalkairis/orgs","repos_url":"https://api.github.com/users/kalkairis/repos","events_url":"https://api.github.com/users/kalkairis/events{/privacy}","received_events_url":"https://api.github.com/users/kalkairis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-03T15:24:48Z","updated_at":"2019-01-03T15:24:48Z","closed_at":null,"author_association":"NONE","body":"## Environment info\r\n\r\nOperating System: CentOS07\r\n\r\nC++/Python/R version: Python3\r\n\r\n## Error message\r\n\r\n/data1/anaconda3/lib/python3.6/site-packages/lightgbm/basic.py in dump_model(self, num_iteration, start_iteration)\r\n   2109                 ctypes.byref(tmp_out_len),\r\n   2110                 ptr_string_buffer))\r\n-> 2111         ret = json.loads(string_buffer.value.decode())\r\n   2112         ret['pandas_categorical'] = json.loads(json.dumps(self.pandas_categorical,\r\n   2113                                                           default=json_default_with_numpy))\r\n\r\n/data1/anaconda3/lib/python3.6/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)\r\n    352             parse_int is None and parse_float is None and\r\n    353             parse_constant is None and object_pairs_hook is None and not kw):\r\n--> 354         return _default_decoder.decode(s)\r\n    355     if cls is None:\r\n    356         cls = JSONDecoder\r\n\r\n/data1/anaconda3/lib/python3.6/json/decoder.py in decode(self, s, _w)\r\n    337 \r\n    338         \"\"\"\r\n--> 339         obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n    340         end = _w(s, end).end()\r\n    341         if end != len(s):\r\n\r\n/data1/anaconda3/lib/python3.6/json/decoder.py in raw_decode(self, s, idx)\r\n    353         \"\"\"\r\n    354         try:\r\n--> 355             obj, end = self.scan_once(s, idx)\r\n    356         except StopIteration as err:\r\n    357             raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\n\r\nJSONDecodeError: Expecting ',' delimiter: line 7 column 42224 (char 42339)\r\n\r\n## Reproducible examples\r\n\r\nshap.TreeExplainer(gbm_predictor)\r\n\r\n## Steps to reproduce\r\n\r\n1. Create a lightGBM predictor with NaNs\r\n2. Run shap.TreeExplainer(predictor)\r\n"}}
{"actor":{"display_login":"kalkairis"}}