class_docstr: Example:
      >>> #The dataset is split into x_train, x_test, y_train, y_test
      >>> forecaster = Forecaster(...)
      >>> forecaster.fit(x=x_train, y=y_train, ...)
      >>> y_pred = forecaster.predict(x_test)
      >>> td = ThresholdDetector()
      >>> td.set_params(threshold=10)
      >>> td.fit(y_test, y_pred)
      >>> anomaly_scores = td.score()
      >>> anomaly_indexes = td.anomaly_indexes()
docstr: Gets the indexes of the anomalies.
  
  :return: the indexes of the anomalies.
docstr_tok: ["Gets","the","indexes","of","the","anomalies",".",":","return",":","the","indexes","of","the","anomalies","."]
code: def anomaly_indexes(self):
      """
      Gets the indexes of the anomalies.
  
      :return: the indexes of the anomalies.
      """
      if self.anomaly_indexes_ is None:
          raise RuntimeError("Please call fit first")
      return self.anomaly_indexes_
  
imports: import math
  import numpy
  from zoo.chronos.detector.anomaly.abstract import AnomalyDetector
  from abc import ABC, abstractmethod
label_desc: Use image node_id 5 for calling the ThresholdDetector obj's underlying member method code with example usage: obj.anomaly_indexes() and returns: self