Fix CPP lint. (#8807)
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
*/
|
||||
#include "cpu_treeshap.h"
|
||||
|
||||
#include <cinttypes> // std::uint32_t
|
||||
#include <algorithm> // copy
|
||||
#include <cinttypes> // std::uint32_t
|
||||
|
||||
#include "predict_fn.h" // GetNextNode
|
||||
#include "xgboost/base.h" // bst_node_t
|
||||
#include "predict_fn.h" // GetNextNode
|
||||
#include "xgboost/base.h" // bst_node_t
|
||||
#include "xgboost/logging.h"
|
||||
#include "xgboost/tree_model.h" // RegTree
|
||||
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#ifndef XGBOOST_PREDICTOR_CPU_TREESHAP_H_
|
||||
#define XGBOOST_PREDICTOR_CPU_TREESHAP_H_
|
||||
/**
|
||||
* Copyright by XGBoost Contributors 2017-2022
|
||||
*/
|
||||
#include <vector> // vector
|
||||
|
||||
#include "xgboost/tree_model.h" // RegTree
|
||||
|
||||
namespace xgboost {
|
||||
@@ -15,3 +19,4 @@ void CalculateContributions(RegTree const &tree, const RegTree::FVec &feat,
|
||||
std::vector<float> *mean_values, bst_float *out_contribs, int condition,
|
||||
unsigned condition_feature);
|
||||
} // namespace xgboost
|
||||
#endif // XGBOOST_PREDICTOR_CPU_TREESHAP_H_
|
||||
|
||||
Reference in New Issue
Block a user