public class AFTSurvivalRegressionModel extends Model<AFTSurvivalRegressionModel> implements MLWritable
AFTSurvivalRegression
.Modifier and Type | Method and Description |
---|---|
Param<java.lang.String> |
censorCol()
Param for censor column name.
|
Vector |
coefficients() |
AFTSurvivalRegressionModel |
copy(ParamMap extra)
Creates a copy of this instance with the same UID and some extra params.
|
java.lang.String |
getCensorCol() |
double[] |
getQuantileProbabilities() |
java.lang.String |
getQuantilesCol() |
boolean |
hasQuantilesCol()
Checks whether the input has quantiles column name.
|
double |
intercept() |
static AFTSurvivalRegressionModel |
load(java.lang.String path) |
double |
predict(Vector features) |
Vector |
predictQuantiles(Vector features) |
DoubleArrayParam |
quantileProbabilities()
Param for quantile probabilities array.
|
Param<java.lang.String> |
quantilesCol()
Param for quantiles column name.
|
static MLReader<AFTSurvivalRegressionModel> |
read() |
double |
scale() |
AFTSurvivalRegressionModel |
setFeaturesCol(java.lang.String value) |
AFTSurvivalRegressionModel |
setPredictionCol(java.lang.String value) |
AFTSurvivalRegressionModel |
setQuantileProbabilities(double[] value) |
AFTSurvivalRegressionModel |
setQuantilesCol(java.lang.String value) |
DataFrame |
transform(DataFrame dataset)
Transforms the input dataset.
|
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)
Validates and transforms the input schema with the provided param map.
|
MLWriter |
write()
Returns an
MLWriter instance for this ML instance. |
transform, transform, transform
transformSchema
clone, equals, finalize, 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, validateParams
toString
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
save
public static MLReader<AFTSurvivalRegressionModel> read()
public static AFTSurvivalRegressionModel load(java.lang.String path)
public java.lang.String uid()
Identifiable
uid
in interface Identifiable
public Vector coefficients()
public double intercept()
public double scale()
public AFTSurvivalRegressionModel setFeaturesCol(java.lang.String value)
public AFTSurvivalRegressionModel setPredictionCol(java.lang.String value)
public AFTSurvivalRegressionModel setQuantileProbabilities(double[] value)
public AFTSurvivalRegressionModel setQuantilesCol(java.lang.String value)
public double predict(Vector features)
public DataFrame transform(DataFrame dataset)
Transformer
transform
in class Transformer
dataset
- (undocumented)public StructType transformSchema(StructType schema)
PipelineStage
Derives the output schema from the input schema.
transformSchema
in class PipelineStage
schema
- (undocumented)public AFTSurvivalRegressionModel copy(ParamMap extra)
Params
copy
in interface Params
copy
in class Model<AFTSurvivalRegressionModel>
extra
- (undocumented)defaultCopy()
public MLWriter write()
MLWritable
MLWriter
instance for this ML instance.write
in interface MLWritable
public Param<java.lang.String> censorCol()
public java.lang.String getCensorCol()
public DoubleArrayParam quantileProbabilities()
public double[] getQuantileProbabilities()
public Param<java.lang.String> quantilesCol()
public java.lang.String getQuantilesCol()
public boolean hasQuantilesCol()
public StructType validateAndTransformSchema(StructType schema, boolean fitting)
schema
- input schemafitting
- whether this is in fitting or prediction