{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/8290","labels_url":"https://api.github.com/repos/apache/spark/issues/8290/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/8290/comments","events_url":"https://api.github.com/repos/apache/spark/issues/8290/events","html_url":"https://github.com/apache/spark/pull/8290","id":101768966,"number":8290,"title":"[SPARK-10097] Adds `shouldMaximize` flag to `ml.tuning.Evaluator`","user":{"login":"feynmanliang","id":990069,"avatar_url":"https://avatars.githubusercontent.com/u/990069?v=3","gravatar_id":"","url":"https://api.github.com/users/feynmanliang","html_url":"https://github.com/feynmanliang","followers_url":"https://api.github.com/users/feynmanliang/followers","following_url":"https://api.github.com/users/feynmanliang/following{/other_user}","gists_url":"https://api.github.com/users/feynmanliang/gists{/gist_id}","starred_url":"https://api.github.com/users/feynmanliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/feynmanliang/subscriptions","organizations_url":"https://api.github.com/users/feynmanliang/orgs","repos_url":"https://api.github.com/users/feynmanliang/repos","events_url":"https://api.github.com/users/feynmanliang/events{/privacy}","received_events_url":"https://api.github.com/users/feynmanliang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-18T23:01:10Z","updated_at":"2015-08-18T23:57:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8290","html_url":"https://github.com/apache/spark/pull/8290","diff_url":"https://github.com/apache/spark/pull/8290.diff","patch_url":"https://github.com/apache/spark/pull/8290.patch"},"body":"Previously, users of evaluator (`CrossValidator` and `TrainValidationSplit`) would only maximize the metric in evaluator, leading to a hacky solution which negated metrics to be minimized and caused erroneous negative values to be reported to the user.\r\n\r\nThis PR adds a `shouldMaximize` attribute to the `Evaluator` base class, instructing users of `Evaluator` on whether the chosen metric should be maximized or minimized.\r\n\r\nCC @jkbradley "},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/132394650","html_url":"https://github.com/apache/spark/pull/8290#issuecomment-132394650","issue_url":"https://api.github.com/repos/apache/spark/issues/8290","id":132394650,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T23:57:57Z","updated_at":"2015-08-18T23:57:57Z","body":"Merged build started."}}