Medial Code Documentation
Loading...
Searching...
No Matches
cpu_treeshap.h
1#ifndef XGBOOST_PREDICTOR_CPU_TREESHAP_H_
2#define XGBOOST_PREDICTOR_CPU_TREESHAP_H_
6#include <vector> // vector
7
8#include "xgboost/tree_model.h" // RegTree
9
10namespace xgboost {
18void CalculateContributions(RegTree const &tree, const RegTree::FVec &feat,
19 std::vector<float> *mean_values, bst_float *out_contribs, int condition,
20 unsigned condition_feature);
21} // namespace xgboost
22#endif // XGBOOST_PREDICTOR_CPU_TREESHAP_H_
define regression tree to be the most common tree model.
Definition tree_model.h:158
namespace of xgboost
Definition base.h:90
float bst_float
float type, used for storing statistics
Definition base.h:97
dense feature vector that can be taken by RegTree and can be construct from sparse feature vector.
Definition tree_model.h:554
Copyright 2014-2023 by Contributors.