class_docstr: Computes SHAP values for generalized additive models.
  
  This assumes that the model only has first-order effects. Extending this to
  second- and third-order effects is future work (if you apply this to those models right now
  you will get incorrect answers that fail additivity).
docstr: Determines if this explainer can handle the given model.
  
  This is an abstract static method meant to be implemented by each subclass.
docstr_tok: ["Determines","if","this","explainer","can","handle","the","given","model",".","This","is","an","abstract","static","method","meant","to","be","implemented","by","each","subclass","."]
code: def supports_model_with_masker(model, masker):
      """Determines if this explainer can handle the given model.
  
      This is an abstract static method meant to be implemented by each subclass.
      """
      if safe_isinstance(
          model, "interpret.glassbox.ExplainableBoostingClassifier"
      ):
          if model.interactions != 0:
              raise NotImplementedError(
                  "Need to add support for interaction effects!"
              )
          return True
  
      return False
  
file_path: shap/shap/explainers/_additive.py
imports: import numpy
  from ..utils import MaskedModel, safe_isinstance
  from ._explainer import Explainer
label_desc: Use image node_id 3 for calling the AdditiveExplainer obj's underlying member method code with example usage: obj.supports_model_with_masker(model, masker) and returns: False, True