class_docstr: Type of AUC summation method.
  
  https://en.wikipedia.org/wiki/Riemann_sum)
  
  Contains the following values:
  * 'interpolation': Applies mid-point summation scheme for `ROC` curve. For
    `PR` curve, interpolates (true/false) positives but not the ratio that is
    precision (see Davis & Goadrich 2006 for details).
  * 'minoring': Applies left summation for increasing intervals and right
    summation for decreasing intervals.
  * 'majoring': Applies right summation for increasing intervals and left
    summation for decreasing intervals.
class_docstr_tok: ["Type","of","AUC","summation","method",".","https",":","\/\/en.wikipedia.org\/wiki\/Riemann_sum",")","Contains","the","following","values",":","*","'interpolation","'",":","Applies","mid-point","summation","scheme","for","`","ROC","`","curve",".","For","`","PR","`","curve",",","interpolates","(","true\/false",")","positives","but","not","the","ratio","that","is","precision","(","see","Davis","&","Goadrich","2006","for","details",")",".","*","'minoring","'",":","Applies","left","summation","for","increasing","intervals","and","right","summation","for","decreasing","intervals",".","*","'majoring","'",":","Applies","right","summation","for","increasing","intervals","and","left","summation","for","decreasing","intervals","."]
code: def from_str(key):
      if key in ("interpolation", "Interpolation"):
          return AUCSummationMethod.INTERPOLATION
      elif key in ("majoring", "Majoring"):
          return AUCSummationMethod.MAJORING
      elif key in ("minoring", "Minoring"):
          return AUCSummationMethod.MINORING
      else:
          raise ValueError(
              f'Invalid AUC summation method value: "{key}". '
              'Expected values are ["interpolation", "majoring", "minoring"]'
          )
  
imports: from enum import Enum
  import numpy
  from keras import backend
  from keras import ops
  from keras.losses.loss import squeeze_to_same_rank
  from keras.utils.python_utils import to_list
label_desc: Use image node_id 1 for calling the AUCSummationMethod obj's underlying member method code with example usage: obj.from_str(key) and returns: AUCSummationMethod, AUCSummationMethod, AUCSummationMethod