{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11989","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11989/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11989/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11989/events","html_url":"https://github.com/apache/spark/pull/11989","id":143860445,"number":11989,"title":"[SPARK-3724][ML] RandomForest: More options for feature subset size.","user":{"login":"yongtang","id":6932348,"avatar_url":"https://avatars.githubusercontent.com/u/6932348?v=3","gravatar_id":"","url":"https://api.github.com/users/yongtang","html_url":"https://github.com/yongtang","followers_url":"https://api.github.com/users/yongtang/followers","following_url":"https://api.github.com/users/yongtang/following{/other_user}","gists_url":"https://api.github.com/users/yongtang/gists{/gist_id}","starred_url":"https://api.github.com/users/yongtang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yongtang/subscriptions","organizations_url":"https://api.github.com/users/yongtang/orgs","repos_url":"https://api.github.com/users/yongtang/repos","events_url":"https://api.github.com/users/yongtang/events{/privacy}","received_events_url":"https://api.github.com/users/yongtang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-03-27T23:28:00Z","updated_at":"2016-04-12T13:41:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11989","html_url":"https://github.com/apache/spark/pull/11989","diff_url":"https://github.com/apache/spark/pull/11989.diff","patch_url":"https://github.com/apache/spark/pull/11989.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis PR tries to support more options for feature subset size in RandomForest implementation. Previously, RandomForest only support \"auto\", \"all\", \"sort\", \"log2\", \"onethird\". This PR tries to support any given value to allow model search.\r\n\r\nIn this PR, `featureSubsetStrategy` could be passed with:\r\na) a real number in the range of `(0.0-1.0]` that represents the fraction of the number of features in each subset,\r\nb)  an integer number (`>0`) that represents the number of features in each subset.\r\n\r\n## How was this patch tested?\r\n\r\nTwo tests `JavaRandomForestClassifierSuite` and `JavaRandomForestRegressorSuite` have been updated to check the additional options for params in this PR.\r\nAn additional test has been added to `org.apache.spark.mllib.tree.RandomForestSuite` to cover the cases in this PR."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/208910425","html_url":"https://github.com/apache/spark/pull/11989#issuecomment-208910425","issue_url":"https://api.github.com/repos/apache/spark/issues/11989","id":208910425,"user":{"login":"MLnick","id":1036807,"avatar_url":"https://avatars.githubusercontent.com/u/1036807?v=3","gravatar_id":"","url":"https://api.github.com/users/MLnick","html_url":"https://github.com/MLnick","followers_url":"https://api.github.com/users/MLnick/followers","following_url":"https://api.github.com/users/MLnick/following{/other_user}","gists_url":"https://api.github.com/users/MLnick/gists{/gist_id}","starred_url":"https://api.github.com/users/MLnick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLnick/subscriptions","organizations_url":"https://api.github.com/users/MLnick/orgs","repos_url":"https://api.github.com/users/MLnick/repos","events_url":"https://api.github.com/users/MLnick/events{/privacy}","received_events_url":"https://api.github.com/users/MLnick/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T13:41:26Z","updated_at":"2016-04-12T13:41:26Z","body":"jenkins retest this please"}}