public class StringIndexer extends Estimator<StringIndexerModel>
| Constructor and Description |
|---|
StringIndexer() |
StringIndexer(String uid) |
| Modifier and Type | Method and Description |
|---|---|
StringIndexerModel |
fit(DataFrame dataset)
Fits a model to the input data.
|
StringIndexer |
setInputCol(String value) |
StringIndexer |
setOutputCol(String value) |
StructType |
transformSchema(StructType schema)
:: DeveloperApi ::
|
String |
uid() |
StructType |
validateAndTransformSchema(StructType schema)
Validates and transforms the input schema.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, copy, copyValues, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, setDefault, shouldOwn, validateParamsinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic StringIndexer(String uid)
public StringIndexer()
public String uid()
public StringIndexer setInputCol(String value)
public StringIndexer setOutputCol(String value)
public StringIndexerModel fit(DataFrame dataset)
Estimatorfit in class Estimator<StringIndexerModel>dataset - (undocumented)public StructType transformSchema(StructType schema)
PipelineStageDerives the output schema from the input schema.
transformSchema in class PipelineStageschema - (undocumented)public StructType validateAndTransformSchema(StructType schema)