class_docstr: Simply returns the global gain/gini feature importances for tree models.
  
  This is only for benchmark comparisons and is not meant to approximate SHAP values.
class_docstr_tok: ["Simply","returns","the","global","gain\/gini","feature","importances","for","tree","models",".","This","is","only","for","benchmark","comparisons","and","is","not","meant","to","approximate","SHAP","values","."]
code: def attributions(self, X):
      return np.tile(self.model.feature_importances_, (X.shape[0], 1))
  
imports: import numpy
  from .._explainer import Explainer
label_desc: Use image node_id 2 for calling the TreeGain obj's underlying member method code with example usage: obj.attributions(X) and returns: np