public class ModelScoring
extends java.lang.Object
| Constructor and Description |
|---|
ModelScoring() |
| Modifier and Type | Method and Description |
|---|---|
static double |
accuracy(BooleanTensor predictedOutput,
BooleanTensor trueOutput)
Calculates the accuracy of a predicted output, given a true output.
|
static double |
coefficientOfDetermination(DoubleTensor predictedOutput,
DoubleTensor trueOutput)
Calculates the coefficient of determination - i.e.
|
public static double coefficientOfDetermination(DoubleTensor predictedOutput, DoubleTensor trueOutput)
predictedOutput - predicted outputtrueOutput - the true output to compare the predicted output againstpublic static double accuracy(BooleanTensor predictedOutput, BooleanTensor trueOutput)
predictedOutput - predicted outputtrueOutput - the true output to compare against