permutation_shap.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2020-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 namespace raft {
9 class handle_t;
10 }
11 
12 namespace ML {
13 namespace Explainer {
14 
59 void permutation_shap_dataset(const raft::handle_t& handle,
60  float* dataset,
61  const float* background,
62  int nrows_bg,
63  int ncols,
64  const float* row,
65  int* idx,
66  bool row_major);
67 
103 void shap_main_effect_dataset(const raft::handle_t& handle,
104  float* dataset,
105  const float* background,
106  int nrows_bg,
107  int ncols,
108  const float* row,
109  int* idx,
110  bool row_major);
111 
127 void update_perm_shap_values(const raft::handle_t& handle,
128  float* shap_values,
129  const float* y_hat,
130  const int ncols,
131  const int* idx);
132 
133 } // namespace Explainer
134 } // namespace ML
void shap_main_effect_dataset(const raft::handle_t &handle, float *dataset, const float *background, int nrows_bg, int ncols, const float *row, int *idx, bool row_major)
void permutation_shap_dataset(const raft::handle_t &handle, float *dataset, const float *background, int nrows_bg, int ncols, const float *row, int *idx, bool row_major)
void update_perm_shap_values(const raft::handle_t &handle, float *shap_values, const float *y_hat, const int ncols, const int *idx)
Definition: dbscan.hpp:18
Definition: dbscan.hpp:14