You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ur...@apache.org on 2026/08/13 09:00:09 UTC
(spark) branch branch-4.x updated: [MINOR][ML] Fix doubled word in HasTrainingSummary scaladoc
This is an automated email from the ASF dual-hosted git repository.
uros-b 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 fc782f15272d [MINOR][ML] Fix doubled word in HasTrainingSummary scaladoc
fc782f15272d is described below
commit fc782f15272d4639447a9132bdfd2781aff7f3e3
Author: Uros Bojanic <22...@users.noreply.github.com>
AuthorDate: Sun Jul 26 22:23:12 2026 +0000
[MINOR][ML] Fix doubled word in HasTrainingSummary scaladoc
### What changes were proposed in this pull request?
Removes a duplicated word in the `summary` scaladoc of `HasTrainingSummary`: "thrown if if `hasSummary` is false" becomes "thrown if `hasSummary` is false".
### Why are the changes needed?
The doubled "if" is a plain typo in a public API doc comment.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Comment-only change. No tests needed.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8)
Closes #57541 from uros-b/typo-hastrainingsummary-if-if.
Lead-authored-by: Uros Bojanic <22...@users.noreply.github.com>
Co-authored-by: Uros Bojanic <ur...@databricks.com>
Signed-off-by: Uros Bojanic <22...@users.noreply.github.com>
(cherry picked from commit 714cb540ebda17e21ba2c53959628087a6412427)
Signed-off-by: Uros Bojanic <22...@users.noreply.github.com>
---
mllib/src/main/scala/org/apache/spark/ml/util/HasTrainingSummary.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mllib/src/main/scala/org/apache/spark/ml/util/HasTrainingSummary.scala b/mllib/src/main/scala/org/apache/spark/ml/util/HasTrainingSummary.scala
index c6f6babf71a2..3fcaea0b1890 100644
--- a/mllib/src/main/scala/org/apache/spark/ml/util/HasTrainingSummary.scala
+++ b/mllib/src/main/scala/org/apache/spark/ml/util/HasTrainingSummary.scala
@@ -38,7 +38,7 @@ private[spark] trait HasTrainingSummary[T] {
/**
* Gets summary of model on training set. An exception is
- * thrown if if `hasSummary` is false.
+ * thrown if `hasSummary` is false.
*/
@Since("3.0.0")
def summary: T = trainingSummary.getOrElse {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org