File tree Expand file tree Collapse file tree
mllib/src/main/scala/org/apache/spark/ml/feature Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818package org .apache .spark .ml .feature
1919
2020import org .apache .spark .annotation .AlphaComponent
21- import org .apache .spark .ml .Transformer
2221import org .apache .spark .ml .attribute .NominalAttribute
2322import org .apache .spark .ml .param ._
2423import org .apache .spark .ml .param .shared .{HasInputCol , HasOutputCol }
2524import org .apache .spark .ml .util .SchemaUtils
25+ import org .apache .spark .ml .{Estimator , Model }
2626import org .apache .spark .sql ._
2727import org .apache .spark .sql .functions ._
2828import org .apache .spark .sql .types .{DoubleType , StructType }
@@ -32,7 +32,8 @@ import org.apache.spark.sql.types.{DoubleType, StructType}
3232 * `Bucketizer` maps a column of continuous features to a column of feature buckets.
3333 */
3434@ AlphaComponent
35- final class Bucketizer extends Transformer with HasInputCol with HasOutputCol {
35+ final class Bucketizer (override val parent : Estimator [Bucketizer ] = null )
36+ extends Model [Bucketizer ] with HasInputCol with HasOutputCol {
3637
3738 /**
3839 * The given buckets should match 1) its size is larger than zero; 2) it is ordered in a non-DESC
You can’t perform that action at this time.
0 commit comments