Class 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 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
      • failed

        public boolean failed
      • nNotFiniteRelError

        public int nNotFiniteRelError
    • Constructor Detail

      • ModelError

        public ModelError()
    • Method Detail

      • setFailed

        public void setFailed()
      • isFailed

        public boolean isFailed()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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)
      • getComparatorError

        public static java.util.Comparator<ModelError> getComparatorError()
      • main

        public static void main​(java.lang.String[] args)