public class AFTSurvivalRegression extends Estimator<AFTSurvivalRegressionModel> implements DefaultParamsWritable
Constructor and Description |
---|
AFTSurvivalRegression() |
AFTSurvivalRegression(String uid) |
Modifier and Type | Method and Description |
---|---|
static IntParam |
aggregationDepth() |
static Param<String> |
censorCol() |
Param<String> |
censorCol()
Param for censor column name.
|
static Params |
clear(Param<?> param) |
AFTSurvivalRegression |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
static String |
explainParam(Param<?> param) |
static String |
explainParams() |
static ParamMap |
extractParamMap() |
static ParamMap |
extractParamMap(ParamMap extra) |
static Param<String> |
featuresCol() |
AFTSurvivalRegressionModel |
fit(Dataset<?> dataset)
Fits a model to the input data.
|
static BooleanParam |
fitIntercept() |
static <T> scala.Option<T> |
get(Param<T> param) |
static int |
getAggregationDepth() |
static String |
getCensorCol() |
String |
getCensorCol() |
static <T> scala.Option<T> |
getDefault(Param<T> param) |
static String |
getFeaturesCol() |
static boolean |
getFitIntercept() |
static String |
getLabelCol() |
static int |
getMaxIter() |
static <T> T |
getOrDefault(Param<T> param) |
static Param<Object> |
getParam(String paramName) |
static String |
getPredictionCol() |
static double[] |
getQuantileProbabilities() |
double[] |
getQuantileProbabilities() |
static String |
getQuantilesCol() |
String |
getQuantilesCol() |
static double |
getTol() |
static <T> boolean |
hasDefault(Param<T> param) |
static boolean |
hasParam(String paramName) |
boolean |
hasQuantilesCol()
Checks whether the input has quantiles column name.
|
static boolean |
isDefined(Param<?> param) |
static boolean |
isSet(Param<?> param) |
static Param<String> |
labelCol() |
static AFTSurvivalRegression |
load(String path) |
static IntParam |
maxIter() |
static Param<?>[] |
params() |
static Param<String> |
predictionCol() |
static DoubleArrayParam |
quantileProbabilities() |
DoubleArrayParam |
quantileProbabilities()
Param for quantile probabilities array.
|
static Param<String> |
quantilesCol() |
Param<String> |
quantilesCol()
Param for quantiles column name.
|
static void |
save(String path) |
static <T> Params |
set(Param<T> param,
T value) |
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.
|
static DoubleParam |
tol() |
static String |
toString() |
StructType |
transformSchema(StructType schema)
:: DeveloperApi ::
|
String |
uid()
An immutable unique ID for the object and its derivatives.
|
StructType |
validateAndTransformSchema(StructType schema,
boolean fitting)
Validates and transforms the input schema with the provided param map.
|
static MLWriter |
write() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
write
save
public AFTSurvivalRegression(String uid)
public AFTSurvivalRegression()
public static AFTSurvivalRegression load(String path)
public static String toString()
public static Param<?>[] params()
public static String explainParam(Param<?> param)
public static String explainParams()
public static final boolean isSet(Param<?> param)
public static final boolean isDefined(Param<?> param)
public static boolean hasParam(String paramName)
public static Param<Object> getParam(String paramName)
public static final <T> scala.Option<T> get(Param<T> param)
public static final <T> T getOrDefault(Param<T> param)
public static final <T> scala.Option<T> getDefault(Param<T> param)
public static final <T> boolean hasDefault(Param<T> param)
public static final ParamMap extractParamMap()
public static final Param<String> featuresCol()
public static final String getFeaturesCol()
public static final Param<String> labelCol()
public static final String getLabelCol()
public static final Param<String> predictionCol()
public static final String getPredictionCol()
public static final IntParam maxIter()
public static final int getMaxIter()
public static final DoubleParam tol()
public static final double getTol()
public static final BooleanParam fitIntercept()
public static final boolean getFitIntercept()
public static final IntParam aggregationDepth()
public static final int getAggregationDepth()
public static final Param<String> censorCol()
public static String getCensorCol()
public static final DoubleArrayParam quantileProbabilities()
public static double[] getQuantileProbabilities()
public static final Param<String> quantilesCol()
public static String getQuantilesCol()
public static void save(String path) throws java.io.IOException
java.io.IOException
public static MLWriter write()
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)public Param<String> censorCol()
public String getCensorCol()
public DoubleArrayParam quantileProbabilities()
public double[] getQuantileProbabilities()
public Param<String> quantilesCol()
public String getQuantilesCol()
public boolean hasQuantilesCol()
public StructType validateAndTransformSchema(StructType schema, boolean fitting)
schema
- input schemafitting
- whether this is in fitting or prediction