def find_threshold_by_max_metric(self, metric):
        """
        :param metrics: A string among the metrics listed in :const:`max_metrics`.
        :returns: the threshold at which the given metric is maximal.
        """
        crit2d = self._metric_json['max_criteria_and_metric_scores']

        for e in crit2d.cell_values:
            if e[0] == "max " + metric.lower():
                return e[1]
        raise ValueError("No metric " + str(metric.lower()))
def find_threshold_by_max_metric(self, metric):
        """
        :param metrics: A string among the metrics listed in :const:`max_metrics`.
        :returns: the threshold at which the given metric is maximal.
        """
        crit2d = self._metric_json['max_criteria_and_metric_scores']

        for e in crit2d.cell_values:
            if e[0] == "max " + metric.lower():
                return e[1]
        raise ValueError("No metric " + str(metric.lower()))
def find_threshold_by_max_metric ( self , metric ) : crit2d = self . _metric_json [ 'max_criteria_and_metric_scores' ] for e in crit2d . cell_values : if e [ 0 ] == "max " + metric . lower ( ) : return e [ 1 ] raise ValueError ( "No metric " + str ( metric . lower ( ) ) )
:param metrics: A string among the metrics listed in :const:`max_metrics`.
        :returns: the threshold at which the given metric is maximal.
: param metrics : A string among the metrics listed in : const : max_metrics . : returns : the threshold at which the given metric is maximal .