public class RegressionEvaluation extends BaseEvaluation<RegressionEvaluation>
Evaluation
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PRECISION |
Constructor and Description |
---|
RegressionEvaluation(int nColumns)
Create a regression evaluation object with the specified number of columns, and default precision
for the stats() method.
|
RegressionEvaluation(int nColumns,
int precision)
Create a regression evaluation object with the specified number of columns, and specified precision
for the stats() method.
|
RegressionEvaluation(java.util.List<java.lang.String> columnNames)
Create a regression evaluation object with default precision for the stats() method
|
RegressionEvaluation(java.util.List<java.lang.String> columnNames,
int precision)
Create a regression evaluation object with specified precision for the stats() method
|
RegressionEvaluation(java.lang.String... columnNames)
Create a regression evaluation object with default precision for the stats() method
|
Modifier and Type | Method and Description |
---|---|
double |
correlationR2(int column) |
void |
eval(org.nd4j.linalg.api.ndarray.INDArray labels,
org.nd4j.linalg.api.ndarray.INDArray predictions) |
double |
meanAbsoluteError(int column) |
double |
meanSquaredError(int column) |
void |
merge(RegressionEvaluation other) |
int |
numColumns() |
double |
relativeSquaredError(int column) |
double |
rootMeanSquaredError(int column) |
java.lang.String |
stats() |
eval, eval, evalTimeSeries, evalTimeSeries
public static final int DEFAULT_PRECISION
public RegressionEvaluation(int nColumns)
nColumns
- Number of columnspublic RegressionEvaluation(int nColumns, int precision)
nColumns
- Number of columnspublic RegressionEvaluation(java.lang.String... columnNames)
columnNames
- Names of the columnspublic RegressionEvaluation(java.util.List<java.lang.String> columnNames)
columnNames
- Names of the columnspublic RegressionEvaluation(java.util.List<java.lang.String> columnNames, int precision)
columnNames
- Names of the columnspublic void eval(org.nd4j.linalg.api.ndarray.INDArray labels, org.nd4j.linalg.api.ndarray.INDArray predictions)
public void merge(RegressionEvaluation other)
public java.lang.String stats()
public int numColumns()
public double meanSquaredError(int column)
public double meanAbsoluteError(int column)
public double rootMeanSquaredError(int column)
public double correlationR2(int column)
public double relativeSquaredError(int column)