public class LinearRegressionModel extends RegressionModel<Vector,LinearRegressionModel> implements LinearRegressionParams
Model produced by LinearRegression
.
Constructor and Description |
---|
LinearRegressionModel(LinearRegression parent,
ParamMap fittingParamMap,
Vector weights,
double intercept) |
Modifier and Type | Method and Description |
---|---|
ParamMap |
fittingParamMap()
Fitting parameters, such that parent.fit(..., fittingParamMap) could reproduce the model.
|
double |
intercept() |
LinearRegression |
parent()
The parent estimator that produced this model.
|
Vector |
weights() |
setFeaturesCol, setPredictionCol, transform, transformSchema
transform, transform
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateAndTransformSchema
getLabelCol, labelCol
featuresCol, getFeaturesCol
getPredictionCol, predictionCol
addOutputColumn, checkInputColumn, explainParams, get, getParam, isSet, paramMap, params, set, set, validate, validate
uid
getRegParam, regParam
getMaxIter, maxIter
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public LinearRegressionModel(LinearRegression parent, ParamMap fittingParamMap, Vector weights, double intercept)
public LinearRegression parent()
Model
parent
in class Model<LinearRegressionModel>
public ParamMap fittingParamMap()
Model
fittingParamMap
in class Model<LinearRegressionModel>
public Vector weights()
public double intercept()