Skip to content

Commit

Permalink
Revise C doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Aug 14, 2020
1 parent 2cf3aca commit 195aae5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions include/xgboost/c_api.h
Expand Up @@ -484,9 +484,15 @@ XGB_DLL int XGDMatrixGetStrFeatureInfo(DMatrixHandle handle, const char *field,
const char ***out_features);

/*!
* \brief Set feature info that's not strings. Currently accepted fields are:
*
* - feature_weight
* \brief Set meta info from dense matrix. Valid field names are:
*
* - label
* - weight
* - base_margin
* - group
* - label_lower_bound
* - label_upper_bound
* - feature_weights
*
* \param handle An instance of data matrix
* \param field Feild name
Expand Down

0 comments on commit 195aae5

Please sign in to comment.