You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ru...@apache.org on 2026/09/07 08:50:38 UTC

(spark) branch branch-4.x updated: [SPARK-59048][ML][FOLLOWUP] Correct transform method documentation

This is an automated email from the ASF dual-hosted git repository.

zhengruifeng pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.x by this push:
     new 3f5efb6051e9 [SPARK-59048][ML][FOLLOWUP] Correct transform method documentation
3f5efb6051e9 is described below

commit 3f5efb6051e977ce0009067235e4628929a2cf12
Author: Ruifeng Zheng <ru...@apache.org>
AuthorDate: Mon Sep 7 16:50:12 2026 +0800

    [SPARK-59048][ML][FOLLOWUP] Correct transform method documentation
    
    ### What changes were proposed in this pull request?
    
    Correct the `ProbabilisticClassificationModel` Scaladoc table for the case where raw prediction,
    probability, and prediction output columns are all enabled. The table now shows that
    `raw2probabilityColumn` and `raw2predictionColumn` both consume the output of `predictRawColumn`.
    
    ### Why are the changes needed?
    
    The existing table incorrectly presents probability and prediction generation as a serial chain.
    `ProbabilisticClassificationModel.transform` builds both columns directly from the raw-prediction
    column.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Not tested because this is a Scaladoc-only change.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    Generated-by: OpenAI Codex (GPT-5)
    
    Closes #58560 from zhengruifeng/ml-spark-59048-followup-dev-6.
    
    Authored-by: Ruifeng Zheng <ru...@apache.org>
    Signed-off-by: Ruifeng Zheng <ru...@foxmail.com>
    (cherry picked from commit 2c6777e3de4dc78a758671b49445f05578c0ba3a)
    Signed-off-by: Ruifeng Zheng <ru...@foxmail.com>
---
 .../org/apache/spark/ml/classification/ProbabilisticClassifier.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala b/mllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala
index 8be033d22db8..b7fe4c2f57e8 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala
@@ -124,7 +124,7 @@ abstract class ProbabilisticClassifier[
  *     <td>Set</td>
  *     <td>Set</td>
  *     <td>Set</td>
- *     <td><code>predictRawColumn</code> => <code>raw2probabilityColumn</code> =>
+ *     <td><code>predictRawColumn</code> => <code>raw2probabilityColumn</code> &amp;
  *       <code>raw2predictionColumn</code></td>
  *   </tr>
  * </table>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org