class_docstr: Simply returns the model coefficients as the feature attributions.
  
  This is only for benchmark comparisons and does not approximate SHAP values in a
  meaningful way.
class_docstr_tok: ["Simply","returns","the","model","coefficients","as","the","feature","attributions",".","This","is","only","for","benchmark","comparisons","and","does","not","approximate","SHAP","values","in","a","meaningful","way","."]
code: def __init__(self, model):
      assert hasattr(
          model, "coef_"
      ), "The passed model does not have a coef_ attribute!"
      self.model = model
  
imports: import numpy
  from .._explainer import Explainer
label_desc: Use image node_id 1 to create a new Coefficient object from inherited base classes: Explainer with example: obj = Coefficient(model)