Interface TargetEncoderBase

All Superinterfaces:
HasHandleInvalid, HasInputCol, HasInputCols, HasLabelCol, HasOutputCol, HasOutputCols, Identifiable, Params, Serializable
All Known Implementing Classes:
TargetEncoder, TargetEncoderModel

public interface TargetEncoderBase extends Params, HasLabelCol, HasInputCol, HasInputCols, HasOutputCol, HasOutputCols, HasHandleInvalid
Private trait for params and common methods for TargetEncoder and TargetEncoderModel
  • Method Details

    • getSmoothing

      double getSmoothing()
    • getTargetType

      String getTargetType()
    • 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)
    • inputFeatures

      String[] inputFeatures()
    • outputFeatures

      String[] outputFeatures()
    • smoothing

      DoubleParam smoothing()
    • targetType

      Param<String> targetType()
    • validateSchema

      StructType validateSchema(StructType schema, boolean fitting)