This is an automated email from the ASF dual-hosted git repository.
uros-b pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 714cb540ebda [MINOR][ML] Fix doubled word in HasTrainingSummary
scaladoc
714cb540ebda is described below
commit 714cb540ebda17e21ba2c53959628087a6412427
Author: Uros Bojanic <[email protected]>
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 <[email protected]>
Co-authored-by: Uros Bojanic <[email protected]>
Signed-off-by: Uros Bojanic <[email protected]>
---
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: [email protected]
For additional commands, e-mail: [email protected]