Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-21770][ML] ProbabilisticClassificationModel fix corner case: n…
…ormalization of all-zero raw predictions ## What changes were proposed in this pull request? Fix probabilisticClassificationModel corner case: normalization of all-zero raw predictions, throw IllegalArgumentException with description. ## How was this patch tested? Test case added. Author: WeichenXu <weichen.xu@databricks.com> Closes #19106 from WeichenXu123/SPARK-21770.
- Loading branch information
1 parent
af8a34c
commit 3b5c2a8
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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