public class IsotonicRegression extends Estimator<IsotonicRegressionModel>
| Constructor and Description |
|---|
IsotonicRegression() |
IsotonicRegression(java.lang.String uid) |
| Modifier and Type | Method and Description |
|---|---|
IsotonicRegression |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
RDD<scala.Tuple3<java.lang.Object,java.lang.Object,java.lang.Object>> |
extractWeightedLabeledPoints(DataFrame dataset)
Extracts (label, feature, weight) from input dataset.
|
IntParam |
featureIndex()
Param for the index of the feature if
featuresCol is a vector column (default: 0), no
effect otherwise. |
IsotonicRegressionModel |
fit(DataFrame dataset)
Fits a model to the input data.
|
int |
getFeatureIndex() |
boolean |
getIsotonic() |
boolean |
hasWeightCol()
Checks whether the input has weight column.
|
BooleanParam |
isotonic()
Param for whether the output sequence should be isotonic/increasing (true) or
antitonic/decreasing (false).
|
static IsotonicRegression |
load(java.lang.String path) |
IsotonicRegression |
setFeatureIndex(int value) |
IsotonicRegression |
setFeaturesCol(java.lang.String value) |
IsotonicRegression |
setIsotonic(boolean value) |
IsotonicRegression |
setLabelCol(java.lang.String value) |
IsotonicRegression |
setPredictionCol(java.lang.String value) |
IsotonicRegression |
setWeightCol(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,
boolean fitting) |
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 IsotonicRegression(java.lang.String uid)
public IsotonicRegression()
public static IsotonicRegression load(java.lang.String path)
public java.lang.String uid()
Identifiableuid in interface Identifiablepublic IsotonicRegression setLabelCol(java.lang.String value)
public IsotonicRegression setFeaturesCol(java.lang.String value)
public IsotonicRegression setPredictionCol(java.lang.String value)
public IsotonicRegression setIsotonic(boolean value)
public IsotonicRegression setWeightCol(java.lang.String value)
public IsotonicRegression setFeatureIndex(int value)
public IsotonicRegression copy(ParamMap extra)
Paramscopy in interface Paramscopy in class Estimator<IsotonicRegressionModel>extra - (undocumented)defaultCopy()public IsotonicRegressionModel fit(DataFrame dataset)
Estimatorfit in class Estimator<IsotonicRegressionModel>dataset - (undocumented)public StructType transformSchema(StructType schema)
PipelineStageDerives the output schema from the input schema.
transformSchema in class PipelineStageschema - (undocumented)public BooleanParam isotonic()
public boolean getIsotonic()
public IntParam featureIndex()
featuresCol is a vector column (default: 0), no
effect otherwise.public int getFeatureIndex()
public boolean hasWeightCol()
public RDD<scala.Tuple3<java.lang.Object,java.lang.Object,java.lang.Object>> extractWeightedLabeledPoints(DataFrame dataset)
dataset - (undocumented)public StructType validateAndTransformSchema(StructType schema, boolean fitting)