public interface StringIndexerBase extends Params, HasHandleInvalid, HasInputCol, HasOutputCol, HasInputCols, HasOutputCols
StringIndexer
and StringIndexerModel
.Modifier and Type | Method and Description |
---|---|
scala.Tuple2<String[],String[]> |
getInOutCols()
Returns the input and output column names corresponding in pair.
|
String |
getStringOrderType() |
Param<String> |
handleInvalid()
Param for how to handle invalid data (unseen labels or NULL values).
|
Param<String> |
stringOrderType()
Param for how to order labels of string column.
|
StructField |
validateAndTransformField(StructType schema,
String inputColName,
String outputColName) |
StructType |
validateAndTransformSchema(StructType schema,
boolean skipNonExistsCol)
Validates and transforms the input schema.
|
getHandleInvalid
getInputCol, inputCol
getOutputCol, outputCol
getInputCols, inputCols
getOutputCols, outputCols
clear, copy, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, onParamChange, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
toString, uid
scala.Tuple2<String[],String[]> getInOutCols()
String getStringOrderType()
Param<String> handleInvalid()
handleInvalid
in interface HasHandleInvalid
Param<String> stringOrderType()
Note: In case of equal frequency when under frequencyDesc/Asc, the strings are further sorted alphabetically.
StructField validateAndTransformField(StructType schema, String inputColName, String outputColName)
StructType validateAndTransformSchema(StructType schema, boolean skipNonExistsCol)