Class Bias

    • Constructor Detail

      • Bias

        public Bias()
    • Method Detail

      • getMetricName

        public String getMetricName()
        Get the name of this metric
        Specified by:
        getMetricName in class weka.classifiers.evaluation.AbstractEvaluationMetric
        Returns:
        the name of this metric
      • getMetricDescription

        public String getMetricDescription()
        Get a short description of this metric (algorithm, forumulas etc.).
        Specified by:
        getMetricDescription in class weka.classifiers.evaluation.AbstractEvaluationMetric
        Returns:
        a short description of this metric
      • getStatisticNames

        public List<String> getStatisticNames()
        Get a list of the names of the statistics that this metrics computes. E.g. an information theoretic evaluation measure might compute total number of bits as well as average bits/instance
        Specified by:
        getStatisticNames in class weka.classifiers.evaluation.AbstractEvaluationMetric
        Returns:
        the names of the statistics that this metric computes
      • getStatistic

        public double getStatistic​(String statName)
        Get the value of the named statistic
        Specified by:
        getStatistic in class weka.classifiers.evaluation.AbstractEvaluationMetric
        Parameters:
        statName - the name of the statistic to compute the value for
        Returns:
        the computed statistic or Utils.missingValue() if the statistic can't be computed for some reason
      • toSummaryString

        public String toSummaryString()
        Return a formatted string (suitable for displaying in console or GUI output) containing all the statistics that this metric computes.
        Returns:
        a formatted string containing all the computed statistics
      • statisticIsMaximisable

        public boolean statisticIsMaximisable​(String statName)
        True if the optimum value of the named metric is a maximum value; false if the optimim value is a minimum value. Subclasses should override this method to suit their statistic(s)
        Overrides:
        statisticIsMaximisable in class weka.classifiers.evaluation.AbstractEvaluationMetric
        Returns:
        true (default implementation)