Interface OneHotEncoderBase

All Superinterfaces:
HasHandleInvalid, HasInputCol, HasInputCols, HasOutputCol, HasOutputCols, Identifiable, Params, Serializable
All Known Implementing Classes:
OneHotEncoder, OneHotEncoderModel

public interface OneHotEncoderBase extends Params, HasHandleInvalid, HasInputCol, HasInputCols, HasOutputCol, HasOutputCols
Private trait for params and common methods for OneHotEncoder and OneHotEncoderModel
  • Method Details

    • dropLast

      BooleanParam dropLast()
      Whether to drop the last category in the encoded vector (default: true)
      Returns:
      (undocumented)
    • getDropLast

      boolean getDropLast()
    • getInOutCols

      scala.Tuple2<String[],String[]> getInOutCols()
      Returns the input and output column names corresponding in pair.
    • handleInvalid

      Param<String> handleInvalid()
      Param for how to handle invalid data during transform(). Options are 'keep' (invalid data presented as an extra categorical feature) or 'error' (throw an error). Note that this Param is only used during transform; during fitting, invalid data will result in an error. Default: "error"
      Specified by:
      handleInvalid in interface HasHandleInvalid
      Returns:
      (undocumented)
    • validateAndTransformSchema

      StructType validateAndTransformSchema(StructType schema, boolean dropLast, boolean keepInvalid)