Repository navigation
[SPARK-10097] Adds shouldMaximize flag to ml.evaluation.Evaluator - #8290
Closed
feynmanliang wants to merge 5 commits into
Closed
feynmanliang wants to merge 5 commits into
feynmanliang wants to merge 5 commits into
Conversation
|
Test build #41173 has finished for PR 8290 at commit
|
Contributor
Author
|
jenkins test this please |
Member
|
LGTM pending tests |
|
Test build #41180 has finished for PR 8290 at commit
|
Contributor
Author
|
Jenkins test this please On Tue, Aug 18, 2015, 10:24 PM UCB AMPLab [email protected] wrote:
|
Contributor
There was a problem hiding this comment.
Evaluatorreports the metrics but not maximizes them. I would suggestisLargerBetterinstead.- This is a break change if we don't put a default value. I would suggest a default value
trueto keep it consistent with implementations in Spark 1.4.
Contributor
|
@feynmanliang Could you change the title to |
shouldMaximize flag to ml.tuning.EvaluatorshouldMaximize flag to ml.evaluation.Evaluator
|
Test build #41259 has finished for PR 8290 at commit
|
Member
|
Merging with master and branch-1.5 |
asfgit
pushed a commit
that referenced
this pull request
Aug 19, 2015
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. This PR adds a `isLargerBetter` attribute to the `Evaluator` base class, instructing users of `Evaluator` on whether the chosen metric should be maximized or minimized. CC jkbradley Author: Feynman Liang <[email protected]> Author: Joseph K. Bradley <[email protected]> Closes #8290 from feynmanliang/SPARK-10097. (cherry picked from commit 28a9846) Signed-off-by: Joseph K. Bradley <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, users of evaluator (
CrossValidatorandTrainValidationSplit) 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.This PR adds a
isLargerBetterattribute to theEvaluatorbase class, instructing users ofEvaluatoron whether the chosen metric should be maximized or minimized.CC @jkbradley