{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/4087","labels_url":"https://api.github.com/repos/apache/spark/issues/4087/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/4087/comments","events_url":"https://api.github.com/repos/apache/spark/issues/4087/events","html_url":"https://github.com/apache/spark/pull/4087","id":54666786,"number":4087,"title":"[SPARK-4894][mllib] Added Bernoulli option to NaiveBayes model in mllib","user":{"login":"leahmcguire","id":9258550,"avatar_url":"https://avatars.githubusercontent.com/u/9258550?v=3","gravatar_id":"","url":"https://api.github.com/users/leahmcguire","html_url":"https://github.com/leahmcguire","followers_url":"https://api.github.com/users/leahmcguire/followers","following_url":"https://api.github.com/users/leahmcguire/following{/other_user}","gists_url":"https://api.github.com/users/leahmcguire/gists{/gist_id}","starred_url":"https://api.github.com/users/leahmcguire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leahmcguire/subscriptions","organizations_url":"https://api.github.com/users/leahmcguire/orgs","repos_url":"https://api.github.com/users/leahmcguire/repos","events_url":"https://api.github.com/users/leahmcguire/events{/privacy}","received_events_url":"https://api.github.com/users/leahmcguire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2015-01-17T16:39:58Z","updated_at":"2015-03-02T20:14:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4087","html_url":"https://github.com/apache/spark/pull/4087","diff_url":"https://github.com/apache/spark/pull/4087.diff","patch_url":"https://github.com/apache/spark/pull/4087.patch"},"body":"Added optional model type parameter for  NaiveBayes training. Can be either Multinomial or Bernoulli. \r\n\r\nWhen Bernoulli is given the Bernoulli smoothing is used for fitting and for prediction as per: http://nlp.stanford.edu/IR-book/html/htmledition/the-bernoulli-model-1.html.\r\n\r\n Default for model is original Multinomial fit and predict.\r\n\r\nAdded additional testing for Bernoulli and Multinomial models."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/76806050","html_url":"https://github.com/apache/spark/pull/4087#issuecomment-76806050","issue_url":"https://api.github.com/repos/apache/spark/issues/4087","id":76806050,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T20:14:46Z","updated_at":"2015-03-02T20:14:46Z","body":"  [Test build #28179 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/28179/consoleFull) for   PR 4087 at commit [`b61b5e2`](https://github.com/apache/spark/commit/b61b5e2d91582689642fb045849df62a16ce111c).\n * This patch **passes all tests**.\n * This patch merges cleanly.\n * This patch adds the following public classes _(experimental)_:\n  * `    case class Data(labels: Array[Double],`\n"}}