class_docstr: Analyze results of machine learning experiments.
docstr: Nemenyi test.
  
  Post-hoc test run if the `friedman_test` reveals statistical significance. For
  more information see
  `Nemenyi test <https://en.wikipedia.org/wiki/Nemenyi_test>`_.
   Implementation used `scikit-posthocs
  <https://github.com/maximtrp/scikit-posthocs>`_.
docstr_tok: ["Nemenyi","test",".","Post-hoc","test","run","if","the","`","friedman_test","`","reveals","statistical","significance",".","For","more","information","see","`","Nemenyi","test","<","https",":","\/\/en.wikipedia.org\/wiki\/Nemenyi_test",">","`","_",".","Implementation","used","`","scikit-posthocs","<","https",":","\/\/github.com\/maximtrp\/scikit-posthocs",">","`","_","."]
code: def nemenyi(self, metric_name=None):
      """Nemenyi test.
  
      Post-hoc test run if the `friedman_test` reveals statistical significance. For
      more information see
      `Nemenyi test <https://en.wikipedia.org/wiki/Nemenyi_test>`_.
       Implementation used `scikit-posthocs
      <https://github.com/maximtrp/scikit-posthocs>`_.
      """
      _check_soft_dependencies("scikit_posthocs")
  
      # lazy import to avoid hard dependency
      from scikit_posthocs import posthoc_nemenyi
  
      self._check_is_evaluated()
      metric_name = self._validate_metric_name(metric_name)
      metrics_per_estimator_dataset = (
          self._get_metrics_per_estimator_dataset(metric_name)
      )
  
      strategy_dict = pd.DataFrame(metrics_per_estimator_dataset)
      strategy_dict = strategy_dict.melt(
          var_name="groups", value_name="values"
      )
      nemenyi = posthoc_nemenyi(
          strategy_dict, val_col="values", group_col="groups"
      )
      return nemenyi
  
imports: import itertools
  import numpy
  import pandas
  from scipy import stats
  from scipy.stats import ranksums, ttest_ind
  from sktime.benchmarking.base import BaseResults
  from sktime.exceptions import NotEvaluatedError
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 15 for calling the Evaluator obj's underlying member method code with example usage: obj.nemenyi(metric_name) and returns: nemenyi