{"action":"created","comment":{"url":"https://api.github.com/repos/h2oai/h2o-3/pulls/comments/210693540","pull_request_review_id":146964541,"id":210693540,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDY5MzU0MA==","diff_hunk":"@@ -3189,6 +3192,56 @@ h2o.getModelTree <- function(model, tree_number, tree_class = NA) {\n     tree@tree_class <- res$tree_class\n   }\n   \n+  if(is.logical(res$levels)){ # Vector of NAs is recognized as logical type in R","path":"h2o-r/h2o-package/R/models.R","position":48,"original_position":48,"commit_id":"198ca6412117b207bff272d423a3d61198b6fe4e","original_commit_id":"198ca6412117b207bff272d423a3d61198b6fe4e","user":{"login":"Pscheidl","id":8769110,"node_id":"MDQ6VXNlcjg3NjkxMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8769110?v=4","gravatar_id":"","url":"https://api.github.com/users/Pscheidl","html_url":"https://github.com/Pscheidl","followers_url":"https://api.github.com/users/Pscheidl/followers","following_url":"https://api.github.com/users/Pscheidl/following{/other_user}","gists_url":"https://api.github.com/users/Pscheidl/gists{/gist_id}","starred_url":"https://api.github.com/users/Pscheidl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pscheidl/subscriptions","organizations_url":"https://api.github.com/users/Pscheidl/orgs","repos_url":"https://api.github.com/users/Pscheidl/repos","events_url":"https://api.github.com/users/Pscheidl/events{/privacy}","received_events_url":"https://api.github.com/users/Pscheidl/received_events","type":"User","site_admin":false},"body":"Levels are a two-dim array. If there are no arrays at all, an array of nulls is sent. This is translated to a vector of NAs. Class of such vector is `logical` and would not fit our purpose. Therefore, such vector of NAs is translated manually into a list of NULLs.","created_at":"2018-08-16T18:17:28Z","updated_at":"2018-08-16T18:17:28Z","html_url":"https://github.com/h2oai/h2o-3/pull/2743#discussion_r210693540","pull_request_url":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/h2oai/h2o-3/pulls/comments/210693540"},"html":{"href":"https://github.com/h2oai/h2o-3/pull/2743#discussion_r210693540"},"pull_request":{"href":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743"}}},"pull_request":{"url":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743","id":208856200,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4ODU2MjAw","html_url":"https://github.com/h2oai/h2o-3/pull/2743","diff_url":"https://github.com/h2oai/h2o-3/pull/2743.diff","patch_url":"https://github.com/h2oai/h2o-3/pull/2743.patch","issue_url":"https://api.github.com/repos/h2oai/h2o-3/issues/2743","number":2743,"state":"open","locked":false,"title":"PUBDEV-5832 - GBM/DRF tree API categorical levels compression","user":{"login":"Pscheidl","id":8769110,"node_id":"MDQ6VXNlcjg3NjkxMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8769110?v=4","gravatar_id":"","url":"https://api.github.com/users/Pscheidl","html_url":"https://github.com/Pscheidl","followers_url":"https://api.github.com/users/Pscheidl/followers","following_url":"https://api.github.com/users/Pscheidl/following{/other_user}","gists_url":"https://api.github.com/users/Pscheidl/gists{/gist_id}","starred_url":"https://api.github.com/users/Pscheidl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pscheidl/subscriptions","organizations_url":"https://api.github.com/users/Pscheidl/orgs","repos_url":"https://api.github.com/users/Pscheidl/repos","events_url":"https://api.github.com/users/Pscheidl/events{/privacy}","received_events_url":"https://api.github.com/users/Pscheidl/received_events","type":"User","site_admin":false},"body":"https://0xdata.atlassian.net/browse/PUBDEV-5832","created_at":"2018-08-16T13:17:35Z","updated_at":"2018-08-16T18:17:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e4a341c37a5dedcbfca219384b49bca1aae779d","assignee":{"login":"Pscheidl","id":8769110,"node_id":"MDQ6VXNlcjg3NjkxMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8769110?v=4","gravatar_id":"","url":"https://api.github.com/users/Pscheidl","html_url":"https://github.com/Pscheidl","followers_url":"https://api.github.com/users/Pscheidl/followers","following_url":"https://api.github.com/users/Pscheidl/following{/other_user}","gists_url":"https://api.github.com/users/Pscheidl/gists{/gist_id}","starred_url":"https://api.github.com/users/Pscheidl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pscheidl/subscriptions","organizations_url":"https://api.github.com/users/Pscheidl/orgs","repos_url":"https://api.github.com/users/Pscheidl/repos","events_url":"https://api.github.com/users/Pscheidl/events{/privacy}","received_events_url":"https://api.github.com/users/Pscheidl/received_events","type":"User","site_admin":false},"assignees":[{"login":"Pscheidl","id":8769110,"node_id":"MDQ6VXNlcjg3NjkxMTA=","avatar_url":"https://avatars3.githubusercontent.com/u/8769110?v=4","gravatar_id":"","url":"https://api.github.com/users/Pscheidl","html_url":"https://github.com/Pscheidl","followers_url":"https://api.github.com/users/Pscheidl/followers","following_url":"https://api.github.com/users/Pscheidl/following{/other_user}","gists_url":"https://api.github.com/users/Pscheidl/gists{/gist_id}","starred_url":"https://api.github.com/users/Pscheidl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pscheidl/subscriptions","organizations_url":"https://api.github.com/users/Pscheidl/orgs","repos_url":"https://api.github.com/users/Pscheidl/repos","events_url":"https://api.github.com/users/Pscheidl/events{/privacy}","received_events_url":"https://api.github.com/users/Pscheidl/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"michalkurka","id":20690218,"node_id":"MDQ6VXNlcjIwNjkwMjE4","avatar_url":"https://avatars2.githubusercontent.com/u/20690218?v=4","gravatar_id":"","url":"https://api.github.com/users/michalkurka","html_url":"https://github.com/michalkurka","followers_url":"https://api.github.com/users/michalkurka/followers","following_url":"https://api.github.com/users/michalkurka/following{/other_user}","gists_url":"https://api.github.com/users/michalkurka/gists{/gist_id}","starred_url":"https://api.github.com/users/michalkurka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michalkurka/subscriptions","organizations_url":"https://api.github.com/users/michalkurka/orgs","repos_url":"https://api.github.com/users/michalkurka/repos","events_url":"https://api.github.com/users/michalkurka/events{/privacy}","received_events_url":"https://api.github.com/users/michalkurka/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743/commits","review_comments_url":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743/comments","review_comment_url":"https://api.github.com/repos/h2oai/h2o-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h2oai/h2o-3/issues/2743/comments","statuses_url":"https://api.github.com/repos/h2oai/h2o-3/statuses/198ca6412117b207bff272d423a3d61198b6fe4e","head":{"label":"h2oai:pavel_pubdev_5382_tree_api_categoricals_compression","ref":"pavel_pubdev_5382_tree_api_categoricals_compression","sha":"198ca6412117b207bff272d423a3d61198b6fe4e","user":{"login":"h2oai","id":1402695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDI2OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1402695?v=4","gravatar_id":"","url":"https://api.github.com/users/h2oai","html_url":"https://github.com/h2oai","followers_url":"https://api.github.com/users/h2oai/followers","following_url":"https://api.github.com/users/h2oai/following{/other_user}","gists_url":"https://api.github.com/users/h2oai/gists{/gist_id}","starred_url":"https://api.github.com/users/h2oai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2oai/subscriptions","organizations_url":"https://api.github.com/users/h2oai/orgs","repos_url":"https://api.github.com/users/h2oai/repos","events_url":"https://api.github.com/users/h2oai/events{/privacy}","received_events_url":"https://api.github.com/users/h2oai/received_events","type":"Organization","site_admin":false},"repo":{"id":17371412,"node_id":"MDEwOlJlcG9zaXRvcnkxNzM3MTQxMg==","name":"h2o-3","full_name":"h2oai/h2o-3","owner":{"login":"h2oai","id":1402695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDI2OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1402695?v=4","gravatar_id":"","url":"https://api.github.com/users/h2oai","html_url":"https://github.com/h2oai","followers_url":"https://api.github.com/users/h2oai/followers","following_url":"https://api.github.com/users/h2oai/following{/other_user}","gists_url":"https://api.github.com/users/h2oai/gists{/gist_id}","starred_url":"https://api.github.com/users/h2oai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2oai/subscriptions","organizations_url":"https://api.github.com/users/h2oai/orgs","repos_url":"https://api.github.com/users/h2oai/repos","events_url":"https://api.github.com/users/h2oai/events{/privacy}","received_events_url":"https://api.github.com/users/h2oai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/h2oai/h2o-3","description":"Open Source Fast Scalable Machine Learning Platform For Smarter Applications (Deep Learning, Gradient Boosting, Random Forest, Generalized Linear Modeling (Logistic Regression, Elastic Net), K-Means, PCA, Stacked Ensembles, Automatic Machine Learning (AutoML), ...)","fork":false,"url":"https://api.github.com/repos/h2oai/h2o-3","forks_url":"https://api.github.com/repos/h2oai/h2o-3/forks","keys_url":"https://api.github.com/repos/h2oai/h2o-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h2oai/h2o-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h2oai/h2o-3/teams","hooks_url":"https://api.github.com/repos/h2oai/h2o-3/hooks","issue_events_url":"https://api.github.com/repos/h2oai/h2o-3/issues/events{/number}","events_url":"https://api.github.com/repos/h2oai/h2o-3/events","assignees_url":"https://api.github.com/repos/h2oai/h2o-3/assignees{/user}","branches_url":"https://api.github.com/repos/h2oai/h2o-3/branches{/branch}","tags_url":"https://api.github.com/repos/h2oai/h2o-3/tags","blobs_url":"https://api.github.com/repos/h2oai/h2o-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h2oai/h2o-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h2oai/h2o-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/h2oai/h2o-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h2oai/h2o-3/statuses/{sha}","languages_url":"https://api.github.com/repos/h2oai/h2o-3/languages","stargazers_url":"https://api.github.com/repos/h2oai/h2o-3/stargazers","contributors_url":"https://api.github.com/repos/h2oai/h2o-3/contributors","subscribers_url":"https://api.github.com/repos/h2oai/h2o-3/subscribers","subscription_url":"https://api.github.com/repos/h2oai/h2o-3/subscription","commits_url":"https://api.github.com/repos/h2oai/h2o-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/h2oai/h2o-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/h2oai/h2o-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/h2oai/h2o-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/h2oai/h2o-3/contents/{+path}","compare_url":"https://api.github.com/repos/h2oai/h2o-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h2oai/h2o-3/merges","archive_url":"https://api.github.com/repos/h2oai/h2o-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h2oai/h2o-3/downloads","issues_url":"https://api.github.com/repos/h2oai/h2o-3/issues{/number}","pulls_url":"https://api.github.com/repos/h2oai/h2o-3/pulls{/number}","milestones_url":"https://api.github.com/repos/h2oai/h2o-3/milestones{/number}","notifications_url":"https://api.github.com/repos/h2oai/h2o-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h2oai/h2o-3/labels{/name}","releases_url":"https://api.github.com/repos/h2oai/h2o-3/releases{/id}","deployments_url":"https://api.github.com/repos/h2oai/h2o-3/deployments","created_at":"2014-03-03T16:08:07Z","updated_at":"2018-08-16T16:51:46Z","pushed_at":"2018-08-16T18:15:28Z","git_url":"git://github.com/h2oai/h2o-3.git","ssh_url":"git@github.com:h2oai/h2o-3.git","clone_url":"https://github.com/h2oai/h2o-3.git","svn_url":"https://github.com/h2oai/h2o-3","homepage":"http://h2o.ai","size":422858,"stargazers_count":3317,"watchers_count":3317,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1278,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1278,"open_issues":71,"watchers":3317,"default_branch":"master"}},"base":{"label":"h2oai:rel-wright","ref":"rel-wright","sha":"b03c8718f5514dcfb364219b6b3c45cd36df7069","user":{"login":"h2oai","id":1402695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDI2OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1402695?v=4","gravatar_id":"","url":"https://api.github.com/users/h2oai","html_url":"https://github.com/h2oai","followers_url":"https://api.github.com/users/h2oai/followers","following_url":"https://api.github.com/users/h2oai/following{/other_user}","gists_url":"https://api.github.com/users/h2oai/gists{/gist_id}","starred_url":"https://api.github.com/users/h2oai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2oai/subscriptions","organizations_url":"https://api.github.com/users/h2oai/orgs","repos_url":"https://api.github.com/users/h2oai/repos","events_url":"https://api.github.com/users/h2oai/events{/privacy}","received_events_url":"https://api.github.com/users/h2oai/received_events","type":"Organization","site_admin":false},"repo":{"id":17371412,"node_id":"MDEwOlJlcG9zaXRvcnkxNzM3MTQxMg==","name":"h2o-3","full_name":"h2oai/h2o-3","owner":{"login":"h2oai","id":1402695,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDI2OTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1402695?v=4","gravatar_id":"","url":"https://api.github.com/users/h2oai","html_url":"https://github.com/h2oai","followers_url":"https://api.github.com/users/h2oai/followers","following_url":"https://api.github.com/users/h2oai/following{/other_user}","gists_url":"https://api.github.com/users/h2oai/gists{/gist_id}","starred_url":"https://api.github.com/users/h2oai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h2oai/subscriptions","organizations_url":"https://api.github.com/users/h2oai/orgs","repos_url":"https://api.github.com/users/h2oai/repos","events_url":"https://api.github.com/users/h2oai/events{/privacy}","received_events_url":"https://api.github.com/users/h2oai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/h2oai/h2o-3","description":"Open Source Fast Scalable Machine Learning Platform For Smarter Applications (Deep Learning, Gradient Boosting, Random Forest, Generalized Linear Modeling (Logistic Regression, Elastic Net), K-Means, PCA, Stacked Ensembles, Automatic Machine Learning (AutoML), ...)","fork":false,"url":"https://api.github.com/repos/h2oai/h2o-3","forks_url":"https://api.github.com/repos/h2oai/h2o-3/forks","keys_url":"https://api.github.com/repos/h2oai/h2o-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h2oai/h2o-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h2oai/h2o-3/teams","hooks_url":"https://api.github.com/repos/h2oai/h2o-3/hooks","issue_events_url":"https://api.github.com/repos/h2oai/h2o-3/issues/events{/number}","events_url":"https://api.github.com/repos/h2oai/h2o-3/events","assignees_url":"https://api.github.com/repos/h2oai/h2o-3/assignees{/user}","branches_url":"https://api.github.com/repos/h2oai/h2o-3/branches{/branch}","tags_url":"https://api.github.com/repos/h2oai/h2o-3/tags","blobs_url":"https://api.github.com/repos/h2oai/h2o-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h2oai/h2o-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h2oai/h2o-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/h2oai/h2o-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h2oai/h2o-3/statuses/{sha}","languages_url":"https://api.github.com/repos/h2oai/h2o-3/languages","stargazers_url":"https://api.github.com/repos/h2oai/h2o-3/stargazers","contributors_url":"https://api.github.com/repos/h2oai/h2o-3/contributors","subscribers_url":"https://api.github.com/repos/h2oai/h2o-3/subscribers","subscription_url":"https://api.github.com/repos/h2oai/h2o-3/subscription","commits_url":"https://api.github.com/repos/h2oai/h2o-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/h2oai/h2o-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/h2oai/h2o-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/h2oai/h2o-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/h2oai/h2o-3/contents/{+path}","compare_url":"https://api.github.com/repos/h2oai/h2o-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h2oai/h2o-3/merges","archive_url":"https://api.github.com/repos/h2oai/h2o-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h2oai/h2o-3/downloads","issues_url":"https://api.github.com/repos/h2oai/h2o-3/issues{/number}","pulls_url":"https://api.github.com/repos/h2oai/h2o-3/pulls{/number}","milestones_url":"https://api.github.com/repos/h2oai/h2o-3/milestones{/number}","notifications_url":"https://api.github.com/repos/h2oai/h2o-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h2oai/h2o-3/labels{/name}","releases_url":"https://api.github.com/repos/h2oai/h2o-3/releases{/id}","deployments_url":"https://api.github.com/repos/h2oai/h2o-3/deployments","created_at":"2014-03-03T16:08:07Z","updated_at":"2018-08-16T16:51:46Z","pushed_at":"2018-08-16T18:15:28Z","git_url":"git://github.com/h2oai/h2o-3.git","ssh_url":"git@github.com:h2oai/h2o-3.git","clone_url":"https://github.com/h2oai/h2o-3.git","svn_url":"https://github.com/h2oai/h2o-3","homepage":"http://h2o.ai","size":422858,"stargazers_count":3317,"watchers_count":3317,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1278,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1278,"open_issues":71,"watchers":3317,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743"},"html":{"href":"https://github.com/h2oai/h2o-3/pull/2743"},"issue":{"href":"https://api.github.com/repos/h2oai/h2o-3/issues/2743"},"comments":{"href":"https://api.github.com/repos/h2oai/h2o-3/issues/2743/comments"},"review_comments":{"href":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743/comments"},"review_comment":{"href":"https://api.github.com/repos/h2oai/h2o-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h2oai/h2o-3/pulls/2743/commits"},"statuses":{"href":"https://api.github.com/repos/h2oai/h2o-3/statuses/198ca6412117b207bff272d423a3d61198b6fe4e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Pscheidl"}}