Skip to content

Commit

Permalink
change it into an Estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxusen committed May 7, 2015
1 parent 998bc87 commit 11fb00a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
package org.apache.spark.ml.feature

import org.apache.spark.annotation.AlphaComponent
import org.apache.spark.ml.Transformer
import org.apache.spark.ml.attribute.NominalAttribute
import org.apache.spark.ml.param._
import org.apache.spark.ml.param.shared.{HasInputCol, HasOutputCol}
import org.apache.spark.ml.util.SchemaUtils
import org.apache.spark.ml.{Estimator, Model}
import org.apache.spark.sql._
import org.apache.spark.sql.functions._
import org.apache.spark.sql.types.{DoubleType, StructType}
Expand All @@ -32,7 +32,8 @@ import org.apache.spark.sql.types.{DoubleType, StructType}
* `Bucketizer` maps a column of continuous features to a column of feature buckets.
*/
@AlphaComponent
final class Bucketizer extends Transformer with HasInputCol with HasOutputCol {
final class Bucketizer(override val parent: Estimator[Bucketizer] = null)
extends Model[Bucketizer] with HasInputCol with HasOutputCol {

/**
* The given buckets should match 1) its size is larger than zero; 2) it is ordered in a non-DESC
Expand Down

0 comments on commit 11fb00a

Please sign in to comment.