docstr: Shows a summary for a particular prediction
  
  Args:
      explainer (Explainer): explainer object constructed with either
                  ClassifierExplainer() or RegressionExplainer()
      title (str, optional): Title of tab or page. Defaults to
                  "Prediction Summary".
      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 None.
      hide_index (bool, optional): hide index selector. Defaults to False.
      hide_percentile (bool, optional): hide percentile toggle. Defaults to False.
      hide_title (bool, optional): hide title. Defaults to False.
      hide_subtitle (bool, optional): Hide subtitle. Defaults to False.
      hide_selector (bool, optional): hide pos label selectors. Defaults to False.
      pos_label ({int, str}, optional): initial pos label.
                  Defaults to explainer.pos_label
      index ({int, str}, optional): Index to display prediction summary for. Defaults to None.
      percentile (bool, optional): Whether to add the prediction percentile. Defaults to True.
docstr_tok: ["Shows","a","summary","for","a","particular","prediction","Args",":","explainer","(","Explainer",")",":","explainer","object","constructed","with","either","ClassifierExplainer","(",")","or","RegressionExplainer","(",")","title","(","str",",","optional",")",":","Title","of","tab","or","page",".","Defaults","to","``","Prediction","Summary","''",".","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","None",".","hide_index","(","bool",",","optional",")",":","hide","index","selector",".","Defaults","to","False",".","hide_percentile","(","bool",",","optional",")",":","hide","percentile","toggle",".","Defaults","to","False",".","hide_title","(","bool",",","optional",")",":","hide","title",".","Defaults","to","False",".","hide_subtitle","(","bool",",","optional",")",":","Hide","subtitle",".","Defaults","to","False",".","hide_selector","(","bool",",","optional",")",":","hide","pos","label","selectors",".","Defaults","to","False",".","pos_label","(","{","int",",","str","}",",","optional",")",":","initial","pos","label",".","Defaults","to","explainer.pos_label","index","(","{","int",",","str","}",",","optional",")",":","Index","to","display","prediction","summary","for",".","Defaults","to","None",".","percentile","(","bool",",","optional",")",":","Whether","to","add","the","prediction","percentile",".","Defaults","to","True","."]
code: def __init__(
      self,
      explainer,
      title="Prediction Summary",
      name=None,
      hide_index=False,
      hide_percentile=False,
      hide_title=False,
      hide_subtitle=False,
      hide_selector=False,
      pos_label=None,
      index=None,
      percentile=True,
      description=None,
      **kwargs,
  ):
      """Shows a summary for a particular prediction
  
      Args:
          explainer (Explainer): explainer object constructed with either
                      ClassifierExplainer() or RegressionExplainer()
          title (str, optional): Title of tab or page. Defaults to
                      "Prediction Summary".
          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 None.
          hide_index (bool, optional): hide index selector. Defaults to False.
          hide_percentile (bool, optional): hide percentile toggle. Defaults to False.
          hide_title (bool, optional): hide title. Defaults to False.
          hide_subtitle (bool, optional): Hide subtitle. Defaults to False.
          hide_selector (bool, optional): hide pos label selectors. Defaults to False.
          pos_label ({int, str}, optional): initial pos label.
                      Defaults to explainer.pos_label
          index ({int, str}, optional): Index to display prediction summary for. Defaults to None.
          percentile (bool, optional): Whether to add the prediction percentile. Defaults to True.
  
      """
      super().__init__(explainer, title, name)
  
      self.index_name = "modelprediction-index-" + self.name
      self.selector = PosLabelSelector(
          explainer, name=self.name, pos_label=pos_label
      )
  
imports: from math import ceil
  import numpy
  import pandas
  import dash
  from dash import html, dcc, Input, Output, State, dash_table
  from dash.exceptions import PreventUpdate
  import dash_bootstrap_components
  from ..dashboard_methods import *
  from ..None import to_html
label_desc: Use image node_id 1 to create a new PredictionSummaryComponent object from inherited base classes: ExplainerComponent with example: obj = PredictionSummaryComponent(explainer, title, name, hide_index, hide_percentile, hide_title, hide_subtitle, hide_selector, pos_label, index, percentile, description)