public final class RegressionStatistics extends Object
Modifier and Type | Method and Description |
---|---|
static RegressionStatistics |
create(DataReaderCommand readerCommand,
String actual,
String predicted)
Initializes a new instance of the
RegressionStatistics class. |
static RegressionStatistics |
create(DataReaderCommand readerCommand,
String actual,
String predicted,
String caseWeight)
Initializes a new instance of the
RegressionStatistics class. |
Double |
getMeanAbsoluteError()
Gets the mean absolute error (MAE), which is a common measure used to determine how close predictions are to the actual values.
|
Double |
getMeanActual()
Gets the mean of the actual column.
|
Double |
getMeanSquaredError()
Gets the mean squared error (MSE), which is a common measure used to determine how close predictions are to the actual values.
|
Double |
getRMSE()
Gets the root mean squared error (RMSE).
|
Double |
getRSquared()
Gets the R squared value (Coefficient of determination).
|
Double |
getSumAbsoluteError()
Gets the sum absolute error (SAE).
|
Double |
getSumSquaredError()
Gets the sum of squared errors (SSE), which is a common measure used to determine how close predictions are to the actual values.
|
double |
getSupport()
Gets the support/weight for the values used to calculate the statistics.
|
Double |
getVarianceActual()
Gets the variance of the actual column.
|
public static RegressionStatistics create(DataReaderCommand readerCommand, String actual, String predicted)
RegressionStatistics
class.readerCommand
- Returns the data containing the actual values and predicted values.actual
- The name of the data column containing the actual value.predicted
- The name of the data column containing the predicted value.public static RegressionStatistics create(DataReaderCommand readerCommand, String actual, String predicted, String caseWeight)
RegressionStatistics
class.readerCommand
- Returns the data containing the actual values and predicted values.actual
- The name of the data column containing the actual value.predicted
- The name of the data column containing the predicted value.caseWeight
- The case weight, if any. Can be null.public Double getMeanAbsoluteError()
public Double getSumAbsoluteError()
public Double getMeanSquaredError()
public Double getSumSquaredError()
public Double getRMSE()
public Double getMeanActual()
public Double getVarianceActual()
public Double getRSquared()
public double getSupport()
Copyright © 2023. All rights reserved.