public class LinearRegressionSummary
extends java.lang.Object
implements scala.Serializable
transform
method.Modifier and Type | Method and Description |
---|---|
double |
explainedVariance()
Returns the explained variance regression score.
|
java.lang.String |
labelCol() |
double |
meanAbsoluteError()
Returns the mean absolute error, which is a risk function corresponding to the
expected value of the absolute error loss or l1-norm loss.
|
double |
meanSquaredError()
Returns the mean squared error, which is a risk function corresponding to the
expected value of the squared error loss or quadratic loss.
|
java.lang.String |
predictionCol() |
DataFrame |
predictions() |
double |
r2()
Returns R^2^, the coefficient of determination.
|
DataFrame |
residuals()
Residuals (label - predicted value)
|
double |
rootMeanSquaredError()
Returns the root mean squared error, which is defined as the square root of
the mean squared error.
|
public DataFrame predictions()
public java.lang.String predictionCol()
public java.lang.String labelCol()
public double explainedVariance()
http://en.wikipedia.org/wiki/Explained_variation
public double meanAbsoluteError()
public double meanSquaredError()
public double rootMeanSquaredError()
public double r2()
http://en.wikipedia.org/wiki/Coefficient_of_determination
public DataFrame residuals()