class_docstr: For classifier models displays a drop down menu with labels to be selected
  as the positive class.
class_docstr_tok: ["For","classifier","models","displays","a","drop","down","menu","with","labels","to","be","selected","as","the","positive","class","."]
docstr: Generates a positive label selector with element id 'pos_label-'+self.name
  
  Args:
      explainer (Explainer): explainer object constructed with e.g.
                  ClassifierExplainer() or RegressionExplainer()
      title (str, optional): Title of tab or page. Defaults to None.
      name (str, optional): unique name to add to Component elements.
                  If None then random uuid is generated to make sure
                  it's unique. Defaults to 'Pos Label Selector'.
      pos_label (int, optional): Initial pos label. Defaults to
                  explainer.pos_label.
code: def __init__(
      self,
      explainer,
      title="Pos Label Selector",
      name=None,
      pos_label=None,
  ):
      """Generates a positive label selector with element id 'pos_label-'+self.name
  
      Args:
          explainer (Explainer): explainer object constructed with e.g.
                      ClassifierExplainer() or RegressionExplainer()
          title (str, optional): Title of tab or page. Defaults to None.
          name (str, optional): unique name to add to Component elements.
                      If None then random uuid is generated to make sure
                      it's unique. Defaults to 'Pos Label Selector'.
          pos_label (int, optional): Initial pos label. Defaults to
                      explainer.pos_label.
      """
      super().__init__(explainer, title, name)
      if pos_label is not None:
          self.pos_label = explainer.pos_label_index(pos_label)
      else:
          self.pos_label = explainer.pos_label
  
imports: import sys
  from abc import ABC
  import inspect
  import types
  from typing import Union, List, Tuple
  from pathlib import Path
  from importlib import import_module
  import socket
  import dash
  from dash import html, dcc, Input, Output, State
  from dash.exceptions import PreventUpdate
  import dash_bootstrap_components
  from .None import to_html
label_desc: Use image node_id 1 to create a new PosLabelSelector object from inherited base classes: ExplainerComponent with example: obj = PosLabelSelector(explainer, title, name, pos_label)