org.apache.spark.ml.regression
Standard error of estimated coefficients and intercept.
The weighted residuals, the usual residuals rescaled by the square root of the instance weights.
Returns the explained variance regression score.
Returns the explained variance regression score. explainedVariance = 1 - variance(y - \hat{y}) / variance(y) Reference: http://en.wikipedia.org/wiki/Explained_variation
Note: This ignores instance weights (setting all to 1.0) from LinearRegression.weightCol. This will change in later Spark versions.
Returns the mean absolute error, which is a risk function corresponding to the expected value of the absolute error loss or l1-norm loss.
Returns the mean absolute error, which is a risk function corresponding to the expected value of the absolute error loss or l1-norm loss.
Note: This ignores instance weights (setting all to 1.0) from LinearRegression.weightCol. This will change in later Spark versions.
Returns the mean squared error, which is a risk function corresponding to the expected value of the squared error loss or quadratic loss.
Returns the mean squared error, which is a risk function corresponding to the expected value of the squared error loss or quadratic loss.
Note: This ignores instance weights (setting all to 1.0) from LinearRegression.weightCol. This will change in later Spark versions.
Number of instances in DataFrame predictions
Two-sided p-value of estimated coefficients and intercept.
predictions outputted by the model's transform
method.
Returns R2, the coefficient of determination.
Returns R2, the coefficient of determination. Reference: http://en.wikipedia.org/wiki/Coefficient_of_determination
Note: This ignores instance weights (setting all to 1.0) from LinearRegression.weightCol. This will change in later Spark versions.
Residuals (label - predicted value)
Residuals (label - predicted value)
Returns the root mean squared error, which is defined as the square root of the mean squared error.
Returns the root mean squared error, which is defined as the square root of the mean squared error.
Note: This ignores instance weights (setting all to 1.0) from LinearRegression.weightCol. This will change in later Spark versions.
T-statistic of estimated coefficients and intercept.
:: Experimental :: Linear regression results evaluated on a dataset.