{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15288","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15288/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15288/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15288/events","html_url":"https://github.com/apache/spark/pull/15288","id":179913653,"number":15288,"title":"[SPARK-17697][ML] Fixed bug in summary calculations that pattern match against label without casting","user":{"login":"BryanCutler","id":4534389,"avatar_url":"https://avatars.githubusercontent.com/u/4534389?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanCutler","html_url":"https://github.com/BryanCutler","followers_url":"https://api.github.com/users/BryanCutler/followers","following_url":"https://api.github.com/users/BryanCutler/following{/other_user}","gists_url":"https://api.github.com/users/BryanCutler/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanCutler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanCutler/subscriptions","organizations_url":"https://api.github.com/users/BryanCutler/orgs","repos_url":"https://api.github.com/users/BryanCutler/repos","events_url":"https://api.github.com/users/BryanCutler/events{/privacy}","received_events_url":"https://api.github.com/users/BryanCutler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-28T23:06:22Z","updated_at":"2016-09-29T19:03:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15288","html_url":"https://github.com/apache/spark/pull/15288","diff_url":"https://github.com/apache/spark/pull/15288.diff","patch_url":"https://github.com/apache/spark/pull/15288.patch"},"body":"## What changes were proposed in this pull request?\r\nIn calling LogisticRegression.evaluate and GeneralizedLinearRegression.evaluate using a Dataset where the Label is not of a double type, calculations pattern match against a double and throw a MatchError.  This fix casts the Label column to a DoubleType to ensure there is no MatchError.\r\n\r\n\r\n## How was this patch tested?\r\nAdded unit tests to call evaluate with a dataset that has Label as other numeric types."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/250560799","html_url":"https://github.com/apache/spark/pull/15288#issuecomment-250560799","issue_url":"https://api.github.com/repos/apache/spark/issues/15288","id":250560799,"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":"2016-09-29T19:03:40Z","updated_at":"2016-09-29T19:03:40Z","body":"**[Test build #66113 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/66113/consoleFull)** for PR 15288 at commit [`640f84b`](https://github.com/apache/spark/commit/640f84b6ac7064d5848107910eccf7a25587fafb).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}