File tree Expand file tree Collapse file tree
mllib/src/main/scala/org/apache/spark/ml/stat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ package org.apache.spark.ml.stat
1919
2020import java .io ._
2121
22- import org .apache .spark .annotation .Since
22+ import org .apache .spark .annotation .{ Experimental , Since }
2323import org .apache .spark .internal .Logging
2424import org .apache .spark .ml .linalg .{Vector , Vectors , VectorUDT }
2525import 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" )
7779object 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
You can’t perform that action at this time.
0 commit comments