public class LogisticRegressionModel extends Model<LogisticRegressionModel> implements LogisticRegressionParams
LogisticRegression
.Constructor and Description |
---|
LogisticRegressionModel(LogisticRegression parent,
ParamMap fittingParamMap,
Vector weights) |
Modifier and Type | Method and Description |
---|---|
ParamMap |
fittingParamMap()
Fitting parameters, such that parent.fit(..., fittingParamMap) could reproduce the model.
|
LogisticRegression |
parent()
The parent estimator that produced this model.
|
LogisticRegressionModel |
setFeaturesCol(String value) |
LogisticRegressionModel |
setPredictionCol(String value) |
LogisticRegressionModel |
setScoreCol(String value) |
LogisticRegressionModel |
setThreshold(double value) |
SchemaRDD |
transform(SchemaRDD dataset,
ParamMap paramMap)
Transforms the dataset with provided parameter map as additional parameters.
|
org.apache.spark.sql.catalyst.types.StructType |
transformSchema(org.apache.spark.sql.catalyst.types.StructType schema,
ParamMap paramMap)
Derives the output schema from the input schema and parameters.
|
transform, transform, transform, transform, transform
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateAndTransformSchema
getRegParam, regParam
getMaxIter, maxIter
getLabelCol, labelCol
getThreshold, threshold
featuresCol, getFeaturesCol
getScoreCol, scoreCol
getPredictionCol, predictionCol
explainParams, get, getParam, isSet, paramMap, params, set, validate, validate
uid
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public LogisticRegressionModel(LogisticRegression parent, ParamMap fittingParamMap, Vector weights)
public LogisticRegression parent()
Model
parent
in class Model<LogisticRegressionModel>
public ParamMap fittingParamMap()
Model
fittingParamMap
in class Model<LogisticRegressionModel>
public LogisticRegressionModel setThreshold(double value)
public LogisticRegressionModel setFeaturesCol(String value)
public LogisticRegressionModel setScoreCol(String value)
public LogisticRegressionModel setPredictionCol(String value)
public org.apache.spark.sql.catalyst.types.StructType transformSchema(org.apache.spark.sql.catalyst.types.StructType schema, ParamMap paramMap)
PipelineStage
transformSchema
in class PipelineStage
public SchemaRDD transform(SchemaRDD dataset, ParamMap paramMap)
Transformer
transform
in class Transformer
dataset
- input datasetparamMap
- additional parameters, overwrite embedded params