Medial Code Documentation
Loading...
Searching...
No Matches
api_entry.h
1
4#ifndef XGBOOST_COMMON_API_ENTRY_H_
5#define XGBOOST_COMMON_API_ENTRY_H_
6#include <string> // std::string
7#include <vector> // std::vector
8
9#include "xgboost/base.h" // GradientPair,bst_ulong
10#include "xgboost/predictor.h" // PredictionCacheEntry
11
12namespace xgboost {
18 std::string ret_str;
20 std::vector<char> ret_char_vec;
22 std::vector<std::string> ret_vec_str;
24 std::vector<const char *> ret_vec_charp;
26 std::vector<float> ret_vec_float;
28 std::vector<std::uint64_t> ret_vec_u64;
30 std::vector<GradientPair> tmp_gpair;
34 std::vector<bst_ulong> prediction_shape;
35};
36} // namespace xgboost
37#endif // XGBOOST_COMMON_API_ENTRY_H_
Copyright 2015-2023 by XGBoost Contributors.
namespace of xgboost
Definition base.h:90
Copyright 2017-2023 by Contributors.
Contains pointer to input matrix and associated cached predictions.
Definition predictor.h:30
entry to to easily hold returning information
Definition api_entry.h:16
std::vector< bst_ulong > prediction_shape
Temp variable for returning prediction shape.
Definition api_entry.h:34
std::vector< GradientPair > tmp_gpair
temp variable of gradient pairs.
Definition api_entry.h:30
PredictionCacheEntry prediction_entry
Temp variable for returning prediction result.
Definition api_entry.h:32
std::vector< const char * > ret_vec_charp
result holder for returning string pointers
Definition api_entry.h:24
std::string ret_str
result holder for returning string
Definition api_entry.h:18
std::vector< char > ret_char_vec
result holder for returning raw buffer
Definition api_entry.h:20
std::vector< float > ret_vec_float
returning float vector.
Definition api_entry.h:26
std::vector< std::uint64_t > ret_vec_u64
returning uint vector.
Definition api_entry.h:28
std::vector< std::string > ret_vec_str
result holder for returning strings
Definition api_entry.h:22