{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/25727338","id":25727338,"diff_hunk":"@@ -89,7 +114,10 @@ object NaiveBayesModel extends Loader[NaiveBayesModel] {\n     def thisClassName = \"org.apache.spark.mllib.classification.NaiveBayesModel\"\n \n     /** Model data for model import/export */\n-    case class Data(labels: Array[Double], pi: Array[Double], theta: Array[Array[Double]])\n+    case class Data(labels: Array[Double],","path":"mllib/src/main/scala/org/apache/spark/mllib/classification/NaiveBayes.scala","position":103,"original_position":103,"commit_id":"b61b5e2d91582689642fb045849df62a16ce111c","original_commit_id":"b61b5e2d91582689642fb045849df62a16ce111c","user":{"login":"jkbradley","id":5084283,"avatar_url":"https://avatars.githubusercontent.com/u/5084283?v=3","gravatar_id":"","url":"https://api.github.com/users/jkbradley","html_url":"https://github.com/jkbradley","followers_url":"https://api.github.com/users/jkbradley/followers","following_url":"https://api.github.com/users/jkbradley/following{/other_user}","gists_url":"https://api.github.com/users/jkbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/jkbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkbradley/subscriptions","organizations_url":"https://api.github.com/users/jkbradley/orgs","repos_url":"https://api.github.com/users/jkbradley/repos","events_url":"https://api.github.com/users/jkbradley/events{/privacy}","received_events_url":"https://api.github.com/users/jkbradley/received_events","type":"User","site_admin":false},"body":"scala style: first argument goes on next line, indented 4 spaces","created_at":"2015-03-03T21:16:25Z","updated_at":"2015-03-03T21:16:25Z","html_url":"https://github.com/apache/spark/pull/4087#discussion_r25727338","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/4087","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/25727338"},"html":{"href":"https://github.com/apache/spark/pull/4087#discussion_r25727338"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/4087"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4087","id":27558760,"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","issue_url":"https://api.github.com/repos/apache/spark/issues/4087","number":4087,"state":"open","locked":false,"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},"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.","created_at":"2015-01-17T16:39:58Z","updated_at":"2015-03-03T21:16:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87a93cbeaee8528b93d0c84b4b474fb0b3341a4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/4087/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/4087/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/4087/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/b61b5e2d91582689642fb045849df62a16ce111c","head":{"label":"leahmcguire:master","ref":"master","sha":"b61b5e2d91582689642fb045849df62a16ce111c","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},"repo":{"id":28930957,"name":"spark","full_name":"leahmcguire/spark","owner":{"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},"private":false,"html_url":"https://github.com/leahmcguire/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/leahmcguire/spark","forks_url":"https://api.github.com/repos/leahmcguire/spark/forks","keys_url":"https://api.github.com/repos/leahmcguire/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leahmcguire/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leahmcguire/spark/teams","hooks_url":"https://api.github.com/repos/leahmcguire/spark/hooks","issue_events_url":"https://api.github.com/repos/leahmcguire/spark/issues/events{/number}","events_url":"https://api.github.com/repos/leahmcguire/spark/events","assignees_url":"https://api.github.com/repos/leahmcguire/spark/assignees{/user}","branches_url":"https://api.github.com/repos/leahmcguire/spark/branches{/branch}","tags_url":"https://api.github.com/repos/leahmcguire/spark/tags","blobs_url":"https://api.github.com/repos/leahmcguire/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leahmcguire/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leahmcguire/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/leahmcguire/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leahmcguire/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/leahmcguire/spark/languages","stargazers_url":"https://api.github.com/repos/leahmcguire/spark/stargazers","contributors_url":"https://api.github.com/repos/leahmcguire/spark/contributors","subscribers_url":"https://api.github.com/repos/leahmcguire/spark/subscribers","subscription_url":"https://api.github.com/repos/leahmcguire/spark/subscription","commits_url":"https://api.github.com/repos/leahmcguire/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/leahmcguire/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/leahmcguire/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/leahmcguire/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/leahmcguire/spark/contents/{+path}","compare_url":"https://api.github.com/repos/leahmcguire/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leahmcguire/spark/merges","archive_url":"https://api.github.com/repos/leahmcguire/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leahmcguire/spark/downloads","issues_url":"https://api.github.com/repos/leahmcguire/spark/issues{/number}","pulls_url":"https://api.github.com/repos/leahmcguire/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/leahmcguire/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/leahmcguire/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leahmcguire/spark/labels{/name}","releases_url":"https://api.github.com/repos/leahmcguire/spark/releases{/id}","created_at":"2015-01-07T19:48:50Z","updated_at":"2015-03-02T18:50:47Z","pushed_at":"2015-03-02T18:50:47Z","git_url":"git://github.com/leahmcguire/spark.git","ssh_url":"git@github.com:leahmcguire/spark.git","clone_url":"https://github.com/leahmcguire/spark.git","svn_url":"https://github.com/leahmcguire/spark","homepage":null,"size":92173,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"cfff397f0adb27ca102cca43a7696e9fb1819ee0","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-03-03T21:04:17Z","pushed_at":"2015-03-03T21:05:32Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":1340555,"stargazers_count":3062,"watchers_count":3062,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2647,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":264,"forks":2647,"open_issues":264,"watchers":3062,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/4087"},"html":{"href":"https://github.com/apache/spark/pull/4087"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/4087"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/4087/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/4087/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/4087/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/b61b5e2d91582689642fb045849df62a16ce111c"}}}}