public class StringIndexer extends Estimator<StringIndexerModel>
IndexToString} for the inverse transformation,
Serialized Form| Constructor and Description |
|---|
StringIndexer() |
StringIndexer(java.lang.String uid) |
| Modifier and Type | Method and Description |
|---|---|
StringIndexer |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
StringIndexerModel |
fit(DataFrame dataset)
Fits a model to the input data.
|
StringIndexer |
setInputCol(java.lang.String value) |
StringIndexer |
setOutputCol(java.lang.String value) |
StructType |
transformSchema(StructType schema)
:: DeveloperApi ::
|
java.lang.String |
uid()
An immutable unique ID for the object and its derivatives.
|
StructType |
validateAndTransformSchema(StructType schema)
Validates and transforms the input schema.
|
transformSchemaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn, validateParamstoStringinitializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarningpublic StringIndexer(java.lang.String uid)
public StringIndexer()
public java.lang.String uid()
Identifiableuid in interface Identifiablepublic StringIndexer setInputCol(java.lang.String value)
public StringIndexer setOutputCol(java.lang.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 StringIndexer copy(ParamMap extra)
Paramscopy in interface Paramscopy in class Estimator<StringIndexerModel>extra - (undocumented)defaultCopy()public StructType validateAndTransformSchema(StructType schema)