class_docstr: Stores the explainability results of a :class:`ShapExplainer <darts.explainability.shap_explainer.ShapExplainer>`
  with convenient access to the results. It extends the :class:`HorizonBasedExplainabilityResult
  <HorizonBasedExplainabilityResult>` and carries additional information specific to the Shap explainers.
  In particular, in addition to the `explained_forecasts` (which in the case of the `ShapExplainer` are the
  shap values), it also provides access to the corresponding `feature_values` and the underlying `shap.Explanation`
  object.
  
  - :func:`get_explanation() <ShapExplainabilityResult.get_explanation>`: explained forecast for a given horizon
    (and target component)
  - :func:`get_feature_values() <ShapExplainabilityResult.get_feature_values>`: feature values for a given horizon
    (and target component).
  - :func:`get_shap_explanation_object() <ShapExplainabilityResult.get_shap_explanation_object>`: `shap.Explanation`
    object for a given horizon (and target component).
  
  Examples
  --------
  >>> explainer = ShapExplainer(model)  # requires `background` if model was trained on multiple series
  >>> explain_results = explainer.explain()
  >>> exlained_fc = explain_results.get_explanation(horizon=1)
  >>> feature_values = explain_results.get_feature_values(horizon=1)
  >>> shap_objects = explain_results.get_shap_explanation_objects(horizon=1)
class_docstr_tok: ["Stores","the","explainability","results","of","a",":","class",":","`","ShapExplainer","<","darts.explainability.shap_explainer.ShapExplainer",">","`","with","convenient","access","to","the","results",".","It","extends","the",":","class",":","`","HorizonBasedExplainabilityResult","<","HorizonBasedExplainabilityResult",">","`","and","carries","additional","information","specific","to","the","Shap","explainers",".","In","particular",",","in","addition","to","the","`","explained_forecasts","`","(","which","in","the","case","of","the","`","ShapExplainer","`","are","the","shap","values",")",",","it","also","provides","access","to","the","corresponding","`","feature_values","`","and","the","underlying","`","shap.Explanation","`","object",".","-",":","func",":","`","get_explanation","(",")","<","ShapExplainabilityResult.get_explanation",">","`",":","explained","forecast","for","a","given","horizon","(","and","target","component",")","-",":","func",":","`","get_feature_values","(",")","<","ShapExplainabilityResult.get_feature_values",">","`",":","feature","values","for","a","given","horizon","(","and","target","component",")",".","-",":","func",":","`","get_shap_explanation_object","(",")","<","ShapExplainabilityResult.get_shap_explanation_object",">","`",":","`","shap.Explanation","`","object","for","a","given","horizon","(","and","target","component",")",".","Examples","--","--","--","--",">",">",">","explainer","=","ShapExplainer","(","model",")","#","requires","`","background","`","if","model","was","trained","on","multiple","series",">",">",">","explain_results","=","explainer.explain","(",")",">",">",">","exlained_fc","=","explain_results.get_explanation","(","horizon=1",")",">",">",">","feature_values","=","explain_results.get_feature_values","(","horizon=1",")",">",">",">","shap_objects","=","explain_results.get_shap_explanation_objects","(","horizon=1",")"]
docstr: Returns the underlying `shap.Explanation` object for a given horizon and component.
  
  Parameters
  ----------
  horizon
      The horizon for which to return the `shap.Explanation` object.
  component
      The component for which to return the `shap.Explanation` object. Does not
      need to be specified for univariate series.
docstr_tok: ["Returns","the","underlying","`","shap.Explanation","`","object","for","a","given","horizon","and","component",".","Parameters","--","--","--","--","--","horizon","The","horizon","for","which","to","return","the","`","shap.Explanation","`","object",".","component","The","component","for","which","to","return","the","`","shap.Explanation","`","object",".","Does","not","need","to","be","specified","for","univariate","series","."]
code: def get_shap_explanation_object(
      self, horizon: int, component: Optional[str] = None
  ) -> Union[shap.Explanation, List[shap.Explanation]]:
      """
      Returns the underlying `shap.Explanation` object for a given horizon and component.
  
      Parameters
      ----------
      horizon
          The horizon for which to return the `shap.Explanation` object.
      component
          The component for which to return the `shap.Explanation` object. Does not
          need to be specified for univariate series.
      """
      return self._query_explainability_result(
          self.shap_explanation_object, horizon, component
      )
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Dict, List, Optional, Union
  import pandas
  import shap
  from darts import TimeSeries
  from darts.logging import get_logger, raise_if, raise_if_not, raise_log
label_desc: Use image node_id 3 for calling the ShapExplainabilityResult obj's underlying member method code with example usage: obj.get_shap_explanation_object(horizon, component) and returns: self