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, wait
clear, copy, copyValues, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, setDefault, shouldOwn, validateParams
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public StringIndexer(String uid)
public StringIndexer()
public String uid()
public StringIndexer setInputCol(String value)
public StringIndexer setOutputCol(String value)
public StringIndexerModel fit(DataFrame dataset)
Estimator
fit
in class Estimator<StringIndexerModel>
dataset
- (undocumented)public StructType transformSchema(StructType schema)
PipelineStage
Derives the output schema from the input schema.
transformSchema
in class PipelineStage
schema
- (undocumented)public StructType validateAndTransformSchema(StructType schema)