docstr: Exception raised when a threshold not inferred for an outlier detector.
  
  Parameters
  ----------
  object_name
      The name of the object that does not have a threshold fit.
docstr_tok: ["Exception","raised","when","a","threshold","not","inferred","for","an","outlier","detector",".","Parameters","--","--","--","--","--","object_name","The","name","of","the","object","that","does","not","have","a","threshold","fit","."]
code: def __init__(self, object_name: str) -> None:
      """Exception raised when a threshold not inferred for an outlier detector.
  
      Parameters
      ----------
      object_name
          The name of the object that does not have a threshold fit.
      """
      message = f"{object_name} has no threshold set, call `infer_threshold` to fit one!"
      super().__init__(message)
  
file_path: alibi-detect/alibi_detect/exceptions.py
imports: from typing_extensions import Literal
  from typing import Callable
  from abc import ABC
  from functools import wraps
label_desc: Use image node_id 1 to create a new ThresholdNotInferredError object from inherited base classes: AlibiDetectException with example: obj = ThresholdNotInferredError(object_name)