28a98464ea
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 <fliang@databricks.com> Author: Joseph K. Bradley <joseph@databricks.com> Closes #8290 from feynmanliang/SPARK-10097. |
||
---|---|---|
.. | ||
param | ||
__init__.py | ||
classification.py | ||
clustering.py | ||
evaluation.py | ||
feature.py | ||
pipeline.py | ||
recommendation.py | ||
regression.py | ||
tests.py | ||
tuning.py | ||
util.py | ||
wrapper.py |