sparktk linear_regression_test_metrics
Classes
class LinearRegressionTestMetrics
RegressionMetrics class used to hold the data returned from linear regression test
Ancestors (in MRO)
- LinearRegressionTestMetrics
- sparktk.propobj.PropertiesObject
- __builtin__.object
Instance variables
var explained_variance
The explained variance regression score
var mean_absolute_error
The risk function corresponding to the expected value of the absolute error loss or l1-norm loss
var mean_squared_error
The risk function corresponding to the expected value of the squared error loss or quadratic loss
var r2
The coefficient of determination
var root_mean_squared_error
The square root of the mean squared error
Methods
def __init__(
self, scala_result)
def to_dict(
self)
def to_json(
self)