Skip to content

Commit c82958f

Browse files
committed
add experimental tag
1 parent b081fc3 commit c82958f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

mllib/src/main/scala/org/apache/spark/ml/stat/Summarizer.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package org.apache.spark.ml.stat
1919

2020
import java.io._
2121

22-
import org.apache.spark.annotation.Since
22+
import org.apache.spark.annotation.{Experimental, Since}
2323
import org.apache.spark.internal.Logging
2424
import org.apache.spark.ml.linalg.{Vector, Vectors, VectorUDT}
2525
import org.apache.spark.sql.Column
@@ -35,8 +35,9 @@ import org.apache.spark.sql.types._
3535
* Users should not directly create such builders, but instead use one of the methods in
3636
* [[Summarizer]].
3737
*/
38+
@Experimental
3839
@Since("2.3.0")
39-
abstract class SummaryBuilder {
40+
sealed abstract class SummaryBuilder {
4041
/**
4142
* Returns an aggregate object that contains the summary of the column with the requested metrics.
4243
* @param featuresCol a column that contains features Vector object.
@@ -73,6 +74,7 @@ abstract class SummaryBuilder {
7374
* Note: Currently, the performance of this interface is about 2x~3x slower then using the RDD
7475
* interface.
7576
*/
77+
@Experimental
7678
@Since("2.3.0")
7779
object Summarizer extends Logging {
7880

@@ -155,8 +157,7 @@ private[ml] class SummaryBuilderImpl(
155157
}
156158
}
157159

158-
private[ml]
159-
object SummaryBuilderImpl extends Logging {
160+
private[ml] object SummaryBuilderImpl extends Logging {
160161

161162
def implementedMetrics: Seq[String] = allMetrics.map(_._1).sorted
162163

0 commit comments

Comments
 (0)