Class ModelError
- java.lang.Object
-
- com.actelion.research.calc.regression.ModelError
-
public class ModelError extends java.lang.Object
ModelError This class is a data model for the error. It is not the error of the model.Copyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.
- Author:
- Modest von Korff Aug 14, 2015 MvK Start implementation
-
-
Field Summary
Fields Modifier and Type Field Description boolean
classification
double
corrSquared
double
corrSquaredSpearman
double
errMax
double
errMin
double
error
double
errorMedian
double
errorRelative
double
errorRelativeMedian
double
errorRelativeWeighted
double
errSumSquared
boolean
failed
int
nNotFiniteRelError
PrecisionAndRecall
precisionAndRecall
-
Constructor Summary
Constructors Constructor Description ModelError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelError
calculateError(Matrix Y, Matrix YHat)
Calculates the absolute and the relative error.static ModelError
calculateError(Matrix Y, Matrix YHat, double threshold, boolean above)
static java.util.Comparator<ModelError>
getComparatorError()
static java.util.List<java.lang.Double>
getError(java.util.List<ModelError> liME)
static ModelError
getErrorAverage(java.util.List<ModelError> liME)
static double
getRelativeError(double y, double yHat)
boolean
isFailed()
static void
main(java.lang.String[] args)
void
setFailed()
java.lang.String
toString()
-
-
-
Field Detail
-
error
public double error
-
errorMedian
public double errorMedian
-
errorRelative
public double errorRelative
-
errorRelativeMedian
public double errorRelativeMedian
-
errorRelativeWeighted
public double errorRelativeWeighted
-
errSumSquared
public double errSumSquared
-
errMax
public double errMax
-
errMin
public double errMin
-
corrSquared
public double corrSquared
-
corrSquaredSpearman
public double corrSquaredSpearman
-
classification
public boolean classification
-
precisionAndRecall
public PrecisionAndRecall precisionAndRecall
-
failed
public boolean failed
-
nNotFiniteRelError
public int nNotFiniteRelError
-
-
Method Detail
-
setFailed
public void setFailed()
-
isFailed
public boolean isFailed()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
calculateError
public static ModelError calculateError(Matrix Y, Matrix YHat)
Calculates the absolute and the relative error.- Parameters:
Y
-YHat
-- Returns:
-
getRelativeError
public static double getRelativeError(double y, double yHat)
-
calculateError
public static ModelError calculateError(Matrix Y, Matrix YHat, double threshold, boolean above)
-
getError
public static java.util.List<java.lang.Double> getError(java.util.List<ModelError> liME)
-
getErrorAverage
public static ModelError getErrorAverage(java.util.List<ModelError> liME)
-
getComparatorError
public static java.util.Comparator<ModelError> getComparatorError()
-
main
public static void main(java.lang.String[] args)
-
-