We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1fc5ec commit 64914a3Copy full SHA for 64914a3
mllib/src/main/scala/org/apache/spark/mllib/classification/SVM.scala
@@ -49,6 +49,13 @@ class SVMModel (
49
this
50
}
51
52
+ /**
53
+ * :: Experimental ::
54
+ * Returns the threshold (if any) used for converting raw prediction scores into 0/1 predictions.
55
+ */
56
+ @Experimental
57
+ def getThreshold: Option[Double] = threshold
58
+
59
/**
60
* :: Experimental ::
61
* Clears the threshold so that `predict` will output raw prediction scores.
0 commit comments