|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.ml.PipelineStage org.apache.spark.ml.Estimator<M>
public abstract class Estimator<M extends Model<M>>
:: DeveloperApi :: Abstract class for estimators that fit models to data.
Constructor Summary | |
---|---|
Estimator()
|
Method Summary | |
---|---|
abstract Estimator<M> |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params. |
abstract M |
fit(DataFrame dataset)
Fits a model to the input data. |
M |
fit(DataFrame dataset,
ParamMap paramMap)
Fits a single model to the input data with provided parameter map. |
scala.collection.Seq<M> |
fit(DataFrame dataset,
ParamMap[] paramMaps)
Fits multiple models to the input data with multiple sets of parameters. |
M |
fit(DataFrame dataset,
ParamPair<?> firstParamPair,
ParamPair<?>... otherParamPairs)
Fits a single model to the input data with optional parameters. |
M |
fit(DataFrame dataset,
ParamPair<?> firstParamPair,
scala.collection.Seq<ParamPair<?>> otherParamPairs)
Fits a single model to the input data with optional parameters. |
Methods inherited from class org.apache.spark.ml.PipelineStage |
---|
transformSchema |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.spark.ml.param.Params |
---|
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, setDefault, shouldOwn, validateParams |
Methods inherited from interface org.apache.spark.Logging |
---|
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning |
Constructor Detail |
---|
public Estimator()
Method Detail |
---|
public M fit(DataFrame dataset, ParamPair<?> firstParamPair, ParamPair<?>... otherParamPairs)
dataset
- input datasetfirstParamPair
- the first param pair, overrides embedded paramsotherParamPairs
- other param pairs. These values override any specified in this
Estimator's embedded ParamMap.
public M fit(DataFrame dataset, ParamPair<?> firstParamPair, scala.collection.Seq<ParamPair<?>> otherParamPairs)
dataset
- input datasetfirstParamPair
- the first param pair, overrides embedded paramsotherParamPairs
- other param pairs. These values override any specified in this
Estimator's embedded ParamMap.
public M fit(DataFrame dataset, ParamMap paramMap)
dataset
- input datasetparamMap
- Parameter map.
These values override any specified in this Estimator's embedded ParamMap.
public abstract M fit(DataFrame dataset)
dataset
- (undocumented)
public scala.collection.Seq<M> fit(DataFrame dataset, ParamMap[] paramMaps)
dataset
- input datasetparamMaps
- An array of parameter maps.
These values override any specified in this Estimator's embedded ParamMap.
public abstract Estimator<M> copy(ParamMap extra)
Params
copy
in interface Params
copy
in class PipelineStage
extra
- (undocumented)
defaultCopy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |