public class AFTSurvivalRegression extends Estimator<AFTSurvivalRegressionModel> implements AFTSurvivalRegressionParams, DefaultParamsWritable, Logging
Constructor and Description |
---|
AFTSurvivalRegression() |
AFTSurvivalRegression(String uid) |
Modifier and Type | Method and Description |
---|---|
IntParam |
aggregationDepth()
Param for suggested depth for treeAggregate (>= 2).
|
Param<String> |
censorCol()
Param for censor column name.
|
AFTSurvivalRegression |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
Param<String> |
featuresCol()
Param for features column name.
|
AFTSurvivalRegressionModel |
fit(Dataset<?> dataset)
Fits a model to the input data.
|
BooleanParam |
fitIntercept()
Param for whether to fit an intercept term.
|
Param<String> |
labelCol()
Param for label column name.
|
static AFTSurvivalRegression |
load(String path) |
IntParam |
maxIter()
Param for maximum number of iterations (>= 0).
|
Param<String> |
predictionCol()
Param for prediction column name.
|
DoubleArrayParam |
quantileProbabilities()
Param for quantile probabilities array.
|
Param<String> |
quantilesCol()
Param for quantiles column name.
|
static MLReader<T> |
read() |
AFTSurvivalRegression |
setAggregationDepth(int value)
Suggested depth for treeAggregate (greater than or equal to 2).
|
AFTSurvivalRegression |
setCensorCol(String value) |
AFTSurvivalRegression |
setFeaturesCol(String value) |
AFTSurvivalRegression |
setFitIntercept(boolean value)
Set if we should fit the intercept
Default is true.
|
AFTSurvivalRegression |
setLabelCol(String value) |
AFTSurvivalRegression |
setMaxIter(int value)
Set the maximum number of iterations.
|
AFTSurvivalRegression |
setPredictionCol(String value) |
AFTSurvivalRegression |
setQuantileProbabilities(double[] value) |
AFTSurvivalRegression |
setQuantilesCol(String value) |
AFTSurvivalRegression |
setTol(double value)
Set the convergence tolerance of iterations.
|
DoubleParam |
tol()
Param for the convergence tolerance for iterative algorithms (>= 0).
|
StructType |
transformSchema(StructType schema)
:: DeveloperApi ::
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
params
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCensorCol, getQuantileProbabilities, getQuantilesCol, hasQuantilesCol, validateAndTransformSchema
getFeaturesCol
getLabelCol
getPredictionCol
getMaxIter
getFitIntercept
getAggregationDepth
clear, copyValues, defaultCopy, defaultParamMap, explainParam, explainParams, extractParamMap, extractParamMap, get, getDefault, getOrDefault, getParam, hasDefault, hasParam, isDefined, isSet, paramMap, params, set, set, set, setDefault, setDefault, shouldOwn
toString
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
write
save
public AFTSurvivalRegression(String uid)
public AFTSurvivalRegression()
public static AFTSurvivalRegression load(String path)
public static MLReader<T> read()
public final Param<String> censorCol()
AFTSurvivalRegressionParams
censorCol
in interface AFTSurvivalRegressionParams
public final DoubleArrayParam quantileProbabilities()
AFTSurvivalRegressionParams
quantileProbabilities
in interface AFTSurvivalRegressionParams
public final Param<String> quantilesCol()
AFTSurvivalRegressionParams
quantilesCol
in interface AFTSurvivalRegressionParams
public final IntParam aggregationDepth()
HasAggregationDepth
aggregationDepth
in interface HasAggregationDepth
public final BooleanParam fitIntercept()
HasFitIntercept
fitIntercept
in interface HasFitIntercept
public final DoubleParam tol()
HasTol
public final IntParam maxIter()
HasMaxIter
maxIter
in interface HasMaxIter
public final Param<String> predictionCol()
HasPredictionCol
predictionCol
in interface HasPredictionCol
public final Param<String> labelCol()
HasLabelCol
labelCol
in interface HasLabelCol
public final Param<String> featuresCol()
HasFeaturesCol
featuresCol
in interface HasFeaturesCol
public String uid()
Identifiable
uid
in interface Identifiable
public AFTSurvivalRegression setFeaturesCol(String value)
public AFTSurvivalRegression setLabelCol(String value)
public AFTSurvivalRegression setCensorCol(String value)
public AFTSurvivalRegression setPredictionCol(String value)
public AFTSurvivalRegression setQuantileProbabilities(double[] value)
public AFTSurvivalRegression setQuantilesCol(String value)
public AFTSurvivalRegression setFitIntercept(boolean value)
value
- (undocumented)public AFTSurvivalRegression setMaxIter(int value)
value
- (undocumented)public AFTSurvivalRegression setTol(double value)
value
- (undocumented)public AFTSurvivalRegression setAggregationDepth(int value)
value
- (undocumented)public AFTSurvivalRegressionModel fit(Dataset<?> dataset)
Estimator
fit
in class Estimator<AFTSurvivalRegressionModel>
dataset
- (undocumented)public StructType transformSchema(StructType schema)
PipelineStage
Check transform validity and derive the output schema from the input schema.
We check validity for interactions between parameters during transformSchema
and
raise an exception if any parameter value is invalid. Parameter value checks which
do not depend on other parameters are handled by Param.validate()
.
Typical implementation should first conduct verification on schema change and parameter validity, including complex parameter interaction checks.
transformSchema
in class PipelineStage
schema
- (undocumented)public AFTSurvivalRegression copy(ParamMap extra)
Params
defaultCopy()
.copy
in interface Params
copy
in class Estimator<AFTSurvivalRegressionModel>
extra
- (undocumented)