docstr: Configuration for classifier models.
  
  Parameters
  ----------
  class_labels: str / list of int / list of str
      * If a ``list`` is provided, the ``list`` maps the index of the output of a
        neural network to labels in a classifier.
      * If a ``str`` is provided, the ``str`` points to a file which maps the index
        to labels in a classifier.
  
  predicted_feature_name: str
      Name of the output feature for the class labels exposed in the
      Core ML neural network classifier. Default: ``'classLabel'``.
  
  predicted_probabilities_output: str
      * If provided, then this is the name of the neural network blob which
        generates the probabilities for each class label (typically the output
        of a softmax layer).
      * If not provided, then the last output layer is assumed.
docstr_tok: ["Configuration","for","classifier","models",".","Parameters","--","--","--","--","--","class_labels",":","str","\/","list","of","int","\/","list","of","str","*","If","a","``","list","``","is","provided",",","the","``","list","``","maps","the","index","of","the","output","of","a","neural","network","to","labels","in","a","classifier",".","*","If","a","``","str","``","is","provided",",","the","``","str","``","points","to","a","file","which","maps","the","index","to","labels","in","a","classifier",".","predicted_feature_name",":","str","Name","of","the","output","feature","for","the","class","labels","exposed","in","the","Core","ML","neural","network","classifier",".","Default",":","``","'classLabel","'","``",".","predicted_probabilities_output",":","str","*","If","provided",",","then","this","is","the","name","of","the","neural","network","blob","which","generates","the","probabilities","for","each","class","label","(","typically","the","output","of","a","softmax","layer",")",".","*","If","not","provided",",","then","the","last","output","layer","is","assumed","."]
code: def __init__(
      self,
      class_labels,
      predicted_feature_name="classLabel",
      predicted_probabilities_output=None,
  ):
      """
      Configuration for classifier models.
  
      Parameters
      ----------
      class_labels: str / list of int / list of str
          * If a ``list`` is provided, the ``list`` maps the index of the output of a
            neural network to labels in a classifier.
          * If a ``str`` is provided, the ``str`` points to a file which maps the index
            to labels in a classifier.
  
      predicted_feature_name: str
          Name of the output feature for the class labels exposed in the
          Core ML neural network classifier. Default: ``'classLabel'``.
  
      predicted_probabilities_output: str
          * If provided, then this is the name of the neural network blob which
            generates the probabilities for each class label (typically the output
            of a softmax layer).
          * If not provided, then the last output layer is assumed.
  
      """
      self.class_labels = class_labels
      self.predicted_feature_name = predicted_feature_name
      self.predicted_probabilities_output = (
          predicted_probabilities_output
      )
  
imports: from enum import Enum
  from typing import Optional
  import numpy
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types.symbolic import is_symbolic
  from coremltools.converters.mil.mil.types.type_mapping import is_builtin, numpy_type_to_builtin_type
label_desc: Use image node_id 1 to create a new ClassifierConfig object  with example: obj = ClassifierConfig(class_labels, predicted_feature_name, predicted_probabilities_output)