Class/Object

org.apache.spark.ml.feature

WeightHotEncoderModel

Related Docs: object WeightHotEncoderModel | package feature

Permalink

class WeightHotEncoderModel extends Model[WeightHotEncoderModel] with WeightHotEncoderBase with MLWritable

Annotations
@Since( "2.3.0" )
Linear Supertypes
MLWritable, WeightHotEncoderBase, HasOutputCols, HasInputCols, HasHandleInvalid, Model[WeightHotEncoderModel], Transformer, PipelineStage, Logging, Params, Serializable, Serializable, Identifiable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WeightHotEncoderModel
  2. MLWritable
  3. WeightHotEncoderBase
  4. HasOutputCols
  5. HasInputCols
  6. HasHandleInvalid
  7. Model
  8. Transformer
  9. PipelineStage
  10. Logging
  11. Params
  12. Serializable
  13. Serializable
  14. Identifiable
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val categorySizes: Array[Int]

    Permalink

    Original number of categories for each feature being encoded.

    Original number of categories for each feature being encoded. The array contains one value for each input column, in order.

    Annotations
    @Since( "2.3.0" )
  7. final def clear(param: Param[_]): WeightHotEncoderModel.this.type

    Permalink
    Definition Classes
    Params
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def copy(extra: ParamMap): WeightHotEncoderModel

    Permalink
    Definition Classes
    WeightHotEncoderModel → Model → Transformer → PipelineStage → Params
    Annotations
    @Since( "2.3.0" )
  10. def copyValues[T <: Params](to: T, extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  11. final def defaultCopy[T <: Params](extra: ParamMap): T

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  12. final val dropLast: BooleanParam

    Permalink

    Whether to drop the last category in the encoded vector (default: true)

    Whether to drop the last category in the encoded vector (default: true)

    Definition Classes
    WeightHotEncoderBase
    Annotations
    @Since( "2.3.0" )
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def explainParam(param: Param[_]): String

    Permalink
    Definition Classes
    Params
  16. def explainParams(): String

    Permalink
    Definition Classes
    Params
  17. final def extractParamMap(): ParamMap

    Permalink
    Definition Classes
    Params
  18. final def extractParamMap(extra: ParamMap): ParamMap

    Permalink
    Definition Classes
    Params
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def get[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def getDefault[T](param: Param[T]): Option[T]

    Permalink
    Definition Classes
    Params
  23. def getDropLast: Boolean

    Permalink

    Definition Classes
    WeightHotEncoderBase
    Annotations
    @Since( "2.3.0" )
  24. def getGroupCols: Array[String]

    Permalink

    Definition Classes
    WeightHotEncoderBase
  25. def getGroupWeighting: String

    Permalink

    Definition Classes
    WeightHotEncoderBase
  26. final def getHandleInvalid: String

    Permalink
    Definition Classes
    HasHandleInvalid
  27. final def getInputCols: Array[String]

    Permalink
    Definition Classes
    HasInputCols
  28. final def getOrDefault[T](param: Param[T]): T

    Permalink
    Definition Classes
    Params
  29. final def getOutputCols: Array[String]

    Permalink
    Definition Classes
    HasOutputCols
  30. def getParam(paramName: String): Param[Any]

    Permalink
    Definition Classes
    Params
  31. def getWeights: Array[Double]

    Permalink

    Definition Classes
    WeightHotEncoderBase
  32. final val groupCols: StringArrayParam

    Permalink

    The columns to group by if a group encoding should be used.

    The columns to group by if a group encoding should be used.

    Definition Classes
    WeightHotEncoderBase
  33. final val groupWeighting: Param[String]

    Permalink

    The group weighting to use.

    The group weighting to use.

    "equi" means dividint by the group size "sqrt" means dividing by the square root of the group size "one" means no division

    Default: "sqrt"

    Definition Classes
    WeightHotEncoderBase
  34. val handleInvalid: Param[String]

    Permalink

    Param for how to handle invalid data during transform().

    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"

    Definition Classes
    WeightHotEncoderBase → HasHandleInvalid
    Annotations
    @Since( "2.3.0" )
  35. final def hasDefault[T](param: Param[T]): Boolean

    Permalink
    Definition Classes
    Params
  36. def hasParam(paramName: String): Boolean

    Permalink
    Definition Classes
    Params
  37. def hasParent: Boolean

    Permalink
    Definition Classes
    Model
  38. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  39. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  40. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  41. final val inputCols: StringArrayParam

    Permalink
    Definition Classes
    HasInputCols
  42. final def isDefined(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  43. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  44. final def isSet(param: Param[_]): Boolean

    Permalink
    Definition Classes
    Params
  45. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  46. def log: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  47. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  48. def logDebug(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  49. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  50. def logError(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  51. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  52. def logInfo(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  53. def logName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  54. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  55. def logTrace(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  56. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  57. def logWarning(msg: ⇒ String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  58. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  59. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  61. final val outputCols: StringArrayParam

    Permalink
    Definition Classes
    HasOutputCols
  62. lazy val params: Array[Param[_]]

    Permalink
    Definition Classes
    Params
  63. var parent: Estimator[WeightHotEncoderModel]

    Permalink
    Definition Classes
    Model
  64. def save(path: String): Unit

    Permalink
    Definition Classes
    MLWritable
    Annotations
    @Since( "1.6.0" ) @throws( ... )
  65. final def set(paramPair: ParamPair[_]): WeightHotEncoderModel.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  66. final def set(param: String, value: Any): WeightHotEncoderModel.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  67. final def set[T](param: Param[T], value: T): WeightHotEncoderModel.this.type

    Permalink
    Definition Classes
    Params
  68. final def setDefault(paramPairs: ParamPair[_]*): WeightHotEncoderModel.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  69. final def setDefault[T](param: Param[T], value: T): WeightHotEncoderModel.this.type

    Permalink
    Attributes
    protected
    Definition Classes
    Params
  70. def setDropLast(value: Boolean): WeightHotEncoderModel.this.type

    Permalink

    Annotations
    @Since( "2.3.0" )
  71. def setGroupCols(value: Array[String]): WeightHotEncoderModel.this.type

    Permalink

  72. def setGroupWeighting(value: String): WeightHotEncoderModel.this.type

    Permalink

  73. def setHandleInvalid(value: String): WeightHotEncoderModel.this.type

    Permalink

    Annotations
    @Since( "2.3.0" )
  74. def setInputCols(values: Array[String]): WeightHotEncoderModel.this.type

    Permalink

    Annotations
    @Since( "2.3.0" )
  75. def setOutputCols(values: Array[String]): WeightHotEncoderModel.this.type

    Permalink

    Annotations
    @Since( "2.3.0" )
  76. def setParent(parent: Estimator[WeightHotEncoderModel]): WeightHotEncoderModel

    Permalink
    Definition Classes
    Model
  77. def setWeights(value: Array[Double]): WeightHotEncoderModel.this.type

    Permalink

  78. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  79. def toString(): String

    Permalink
    Definition Classes
    Identifiable → AnyRef → Any
  80. def transform(dataset: Dataset[_]): DataFrame

    Permalink
    Definition Classes
    WeightHotEncoderModel → Transformer
    Annotations
    @Since( "2.3.0" )
  81. def transform(dataset: Dataset[_], paramMap: ParamMap): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" )
  82. def transform(dataset: Dataset[_], firstParamPair: ParamPair[_], otherParamPairs: ParamPair[_]*): DataFrame

    Permalink
    Definition Classes
    Transformer
    Annotations
    @Since( "2.0.0" ) @varargs()
  83. def transformSchema(schema: StructType): StructType

    Permalink
    Definition Classes
    WeightHotEncoderModel → PipelineStage
    Annotations
    @Since( "2.3.0" )
  84. def transformSchema(schema: StructType, logging: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    PipelineStage
    Annotations
    @DeveloperApi()
  85. val uid: String

    Permalink
    Definition Classes
    WeightHotEncoderModel → Identifiable
    Annotations
    @Since( "2.3.0" )
  86. def validateAndTransformSchema(schema: StructType, dropLast: Boolean, keepInvalid: Boolean): StructType

    Permalink
    Attributes
    protected
    Definition Classes
    WeightHotEncoderBase
  87. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  88. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  89. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  90. final val weights: DoubleArrayParam

    Permalink

    The weight to use instead of 1.0 for hot encoding, for each column

    The weight to use instead of 1.0 for hot encoding, for each column

    Definition Classes
    WeightHotEncoderBase
  91. def write: MLWriter

    Permalink
    Definition Classes
    WeightHotEncoderModel → MLWritable
    Annotations
    @Since( "2.3.0" )

Inherited from MLWritable

Inherited from WeightHotEncoderBase

Inherited from HasOutputCols

Inherited from HasInputCols

Inherited from HasHandleInvalid

Inherited from Model[WeightHotEncoderModel]

Inherited from Transformer

Inherited from PipelineStage

Inherited from Logging

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped