docstr: SHAP VALUES CALCULATED
docstr_tok: ["SHAP","VALUES","CALCULATED"]
code: def get_shap_values(self, x_array, model, x_variable, cat_index):
      """
      SHAP VALUES CALCULATED
      """
      from catboost import Pool
  
      shap_values = model.get_feature_importance(
          Pool(x_array, cat_features=cat_index), type="ShapValues"
      )
      shap_values = shap_values[:, :-1]
      total_columns = x_variable
      total_columns = [i + "_impact" for i in total_columns]
  
      shap_values = pd.DataFrame(
          data=shap_values, columns=total_columns
      )
      return shap_values
  
file_path: explainx/lib/calculate_shap.py
imports: from imports import *
  from rescale_numeric_feature import *
label_desc: Use image node_id 10 for calling the calculate_shap obj's underlying member method code with example usage: obj.get_shap_values(x_array, model, x_variable, cat_index) and returns: shap_values