Class ModelError
- java.lang.Object
-
- com.actelion.research.calc.regression.ModelError
-
public class ModelError extends java.lang.ObjectModelError 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 booleanclassificationdoublecorrSquareddoublecorrSquaredSpearmandoubleerrMaxdoubleerrMindoubleerrordoubleerrorMediandoubleerrorRelativedoubleerrorRelativeMediandoubleerrorRelativeWeighteddoubleerrSumSquaredbooleanfailedintnNotFiniteRelErrorPrecisionAndRecallprecisionAndRecall
-
Constructor Summary
Constructors Constructor Description ModelError()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelErrorcalculateError(Matrix Y, Matrix YHat)Calculates the absolute and the relative error.static ModelErrorcalculateError(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 ModelErrorgetErrorAverage(java.util.List<ModelError> liME)static doublegetRelativeError(double y, double yHat)booleanisFailed()static voidmain(java.lang.String[] args)voidsetFailed()java.lang.StringtoString()
-
-
-
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:
toStringin 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)
-
-