{"action":"closed","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7826","repository_url":"https://api.github.com/repos/scikit-learn/scikit-learn","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7826/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7826/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/7826/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/7826","id":187495764,"number":7826,"title":"Can't load RandomForest classifier ","user":{"login":"r-zemblys","id":8914323,"avatar_url":"https://avatars.githubusercontent.com/u/8914323?v=3","gravatar_id":"","url":"https://api.github.com/users/r-zemblys","html_url":"https://github.com/r-zemblys","followers_url":"https://api.github.com/users/r-zemblys/followers","following_url":"https://api.github.com/users/r-zemblys/following{/other_user}","gists_url":"https://api.github.com/users/r-zemblys/gists{/gist_id}","starred_url":"https://api.github.com/users/r-zemblys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-zemblys/subscriptions","organizations_url":"https://api.github.com/users/r-zemblys/orgs","repos_url":"https://api.github.com/users/r-zemblys/repos","events_url":"https://api.github.com/users/r-zemblys/events{/privacy}","received_events_url":"https://api.github.com/users/r-zemblys/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-05T12:59:51Z","updated_at":"2016-11-05T13:55:09Z","closed_at":"2016-11-05T13:55:09Z","body":"<!--\r\nIf your issue is a usage question, submit it here instead:\r\n- StackOverflow with the scikit-learn tag: http://stackoverflow.com/questions/tagged/scikit-learn\r\n- Mailing List: https://mail.python.org/mailman/listinfo/scikit-learn\r\nFor more information, see User Questions: http://scikit-learn.org/stable/support.html#user-questions\r\n-->\r\n\r\n<!-- Instructions For Filing a Bug: https://github.com/scikit-learn/scikit-learn/blob/master/CONTRIBUTING.md#filing-bugs -->\r\n\r\n#### Description\r\nLoading RandomForestClassifier model throws error:\r\n`\r\nsklearn/tree/_tree.pyx in sklearn.tree._tree.Tree.__setstate__ (sklearn/tree/_tree.c:7849)()\r\nKeyError: 'max_depth'\r\n`\r\n\r\n#### Steps/Code to Reproduce\r\nClassifier was trained using scikit-learn 0.17.1 and saved with `joblib.dump`\r\n`max_depth` was set to `None` during training\r\n#### Versions\r\n<!--\r\nPlease run the following snippet and paste the output below.\r\nimport platform; print(platform.platform())\r\nimport sys; print(\"Python\", sys.version)\r\nimport numpy; print(\"NumPy\", numpy.__version__)\r\nimport scipy; print(\"SciPy\", scipy.__version__)\r\nimport sklearn; print(\"Scikit-Learn\", sklearn.__version__)\r\n-->\r\nLinux-3.2.0-4-amd64-x86_64-with-debian-7.11\r\n('Python', '2.7.3 (default, Jun 21 2016, 18:38:19) \\n[GCC 4.7.2]')\r\n('NumPy', '1.11.1')\r\n('SciPy', '0.18.1')\r\n('Scikit-Learn', '0.18')\r\nand \r\n('Scikit-Learn', '0.19.dev0')\r\n<!-- Thanks for contributing! -->\r\n"}}
{"actor":{"display_login":"jnothman"}}