SuccessChanges

Summary

  1. [SPARK-30358][ML] ML expose predictRaw and predictProbability (details)
  2. [SPARK-30378][ML][PYSPARK] Add getter/setter in Python FM (details)
Commit 32a5233d126a9b26f91d660c14a5119a796123f5 by ruifengz
[SPARK-30358][ML] ML expose predictRaw and predictProbability
### What changes were proposed in this pull request? 1, expose
predictRaw and predictProbability 2, add tests
### Why are the changes needed? single instance prediction is useful out
of spark, specially for online prediction. Current `predict` is exposed,
but it is not enough.
### Does this PR introduce any user-facing change? Yes, new methods are
exposed
### How was this patch tested? added testsuites
Closes #27015 from zhengruifeng/expose_raw_prob.
Authored-by: zhengruifeng <ruifengz@foxmail.com> Signed-off-by:
zhengruifeng <ruifengz@foxmail.com>
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/FMClassifier.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/NaiveBayesSuite.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/ClassifierSuite.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/DecisionTreeClassifierSuite.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/ProbabilisticClassifierSuite.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/regression/IsotonicRegression.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/util/MLTest.scala (diff)
The file was modifiedexamples/src/main/scala/org/apache/spark/examples/ml/DeveloperApiExample.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/NaiveBayes.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/Classifier.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/LinearSVCSuite.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/LogisticRegressionSuite.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/DecisionTreeClassifier.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/RandomForestClassifier.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/GBTClassifierSuite.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/LinearSVC.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/classification/GBTClassifier.scala (diff)
The file was modifiedmllib/src/test/scala/org/apache/spark/ml/classification/RandomForestClassifierSuite.scala (diff)
The file was modifiedmllib/src/main/scala/org/apache/spark/ml/regression/FMRegressor.scala (diff)
Commit 9ee8da298d624d03e3dae718e3900b6d58f990c5 by ruifengz
[SPARK-30378][ML][PYSPARK] Add getter/setter in Python FM
### What changes were proposed in this pull request? add getter/setter
in Python FM
### Why are the changes needed? to be consistent with other algorithms
### Does this PR introduce any user-facing change? Yes. add
getter/setter in Python
FMRegressor/FMRegressionModel/FMClassifier/FMClassificationModel
### How was this patch tested? doctest
Closes #27044 from huaxingao/spark-30378.
Authored-by: Huaxin Gao <huaxing@us.ibm.com> Signed-off-by: zhengruifeng
<ruifengz@foxmail.com>
The file was modifiedpython/pyspark/ml/regression.py (diff)
The file was modifiedpython/pyspark/ml/classification.py (diff)