docstr: Removes a metric used for evaluation.
  
  
  Example
  -------
  >>> from pycaret.datasets import get_data
  >>> jewellery = get_data('jewellery')
  >>> from pycaret.clustering import *
  >>> exp_name = setup(data = jewellery)
  >>> remove_metric('cs')
  
  
  name_or_id: str
      Display name or ID of the metric.
  
  
  Returns:
      None
docstr_tok: ["Removes","a","metric","used","for","evaluation",".","Example","--","--","--","-",">",">",">","from","pycaret.datasets","import","get_data",">",">",">","jewellery","=","get_data","(","'jewellery","'",")",">",">",">","from","pycaret.clustering","import","*",">",">",">","exp_name","=","setup","(","data","=","jewellery",")",">",">",">","remove_metric","(","'cs","'",")","name_or_id",":","str","Display","name","or","ID","of","the","metric",".","Returns",":","None"]
code: def remove_metric(self, name_or_id: str):
      """
      Removes a metric used for evaluation.
  
  
      Example
      -------
      >>> from pycaret.datasets import get_data
      >>> jewellery = get_data('jewellery')
      >>> from pycaret.clustering import *
      >>> exp_name = setup(data = jewellery)
      >>> remove_metric('cs')
  
  
      name_or_id: str
          Display name or ID of the metric.
  
  
      Returns:
          None
  
      """
  
      if not self._setup_ran:
          raise ValueError("setup() needs to be ran first.")
  
      try:
          self._all_metrics.pop(name_or_id)
          return
      except Exception:
          pass
  
      try:
          k_to_remove = next(
              k
              for k, v in self._all_metrics.items()
              if v.name == name_or_id
          )
          self._all_metrics.pop(k_to_remove)
          return
      except Exception:
          pass
  
      raise ValueError(
          f"No metric 'Display Name' or 'ID' (index) {name_or_id} present in the metrics repository."
      )
  
imports: from typing import Any, List, Optional, Tuple, Union
  import numpy
  import pandas
  import pycaret.internal.patches.sklearn
  import pycaret.internal.patches.yellowbrick
  import pycaret.internal.persistence
  import pycaret.internal.preprocess
  from pycaret.containers.metrics.clustering import get_all_metric_containers
  from pycaret.containers.models.clustering import get_all_model_containers
  from pycaret.internal.logging import get_logger
  from pycaret.internal.pycaret_experiment.unsupervised_experiment import _UnsupervisedExperiment
  from pycaret.utils.generic import MLUsecase
label_desc: Use image node_id 9 for calling the ClusteringExperiment obj's underlying member method code with example usage: obj.remove_metric(name_or_id) without return types