File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
mllib/src/main/scala/org/apache/spark/ml/feature Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 18
18
package org .apache .spark .ml .feature
19
19
20
20
import org .apache .spark .annotation .AlphaComponent
21
- import org .apache .spark .ml .Transformer
22
21
import org .apache .spark .ml .attribute .NominalAttribute
23
22
import org .apache .spark .ml .param ._
24
23
import org .apache .spark .ml .param .shared .{HasInputCol , HasOutputCol }
25
24
import org .apache .spark .ml .util .SchemaUtils
25
+ import org .apache .spark .ml .{Estimator , Model }
26
26
import org .apache .spark .sql ._
27
27
import org .apache .spark .sql .functions ._
28
28
import org .apache .spark .sql .types .{DoubleType , StructType }
@@ -32,7 +32,8 @@ import org.apache.spark.sql.types.{DoubleType, StructType}
32
32
* `Bucketizer` maps a column of continuous features to a column of feature buckets.
33
33
*/
34
34
@ 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 {
36
37
37
38
/**
38
39
* 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