-
- Downloads
[SPARK-20929][ML] LinearSVC should use its own threshold param
## What changes were proposed in this pull request? LinearSVC should use its own threshold param, rather than the shared one, since it applies to rawPrediction instead of probability. This PR changes the param in the Scala, Python and R APIs. ## How was this patch tested? New unit test to make sure the threshold can be set to any Double value. Author: Joseph K. Bradley <joseph@databricks.com> Closes #18151 from jkbradley/ml-2.2-linearsvc-cleanup.
Showing
- R/pkg/R/mllib_classification.R 3 additions, 1 deletionR/pkg/R/mllib_classification.R
- mllib/src/main/scala/org/apache/spark/ml/classification/LinearSVC.scala 23 additions, 2 deletions.../scala/org/apache/spark/ml/classification/LinearSVC.scala
- mllib/src/test/scala/org/apache/spark/ml/classification/LinearSVCSuite.scala 34 additions, 1 deletion...a/org/apache/spark/ml/classification/LinearSVCSuite.scala
- python/pyspark/ml/classification.py 19 additions, 1 deletionpython/pyspark/ml/classification.py
Loading
Please register or sign in to comment