docstr: Configuration for classifier models.
  
  Attributes:
  
  class_labels: str / list of int / list of str
      If a list if given, the list maps the index of the output of a
      neural network to labels in a classifier.
      If a str is given, 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, defaults: '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",".","Attributes",":","class_labels",":","str","\/","list","of","int","\/","list","of","str","If","a","list","if","given",",","the","list","maps","the","index","of","the","output","of","a","neural","network","to","labels","in","a","classifier",".","If","a","str","is","given",",","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",",","defaults",":","'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.
  
      Attributes:
  
      class_labels: str / list of int / list of str
          If a list if given, the list maps the index of the output of a
          neural network to labels in a classifier.
          If a str is given, 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, defaults: '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: import logging
  import numpy
  import six
  from coremltools.converters.mil.mil.types.symbolic import is_symbolic
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types.type_mapping import numpy_type_to_builtin_type, is_builtin
label_desc: Use image node_id 1 to create a new ClassifierConfig object from inherited base classes: object with example: obj = ClassifierConfig(class_labels, predicted_feature_name, predicted_probabilities_output)