XGBoosterCreate api unified to use const DMatrix[] argument

This commit is contained in:
Wojciech Migda 2016-03-26 19:42:58 +01:00
parent 605c23e0dc
commit 6a5eb47789
2 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ XGB_DLL int XGDMatrixNumCol(DMatrixHandle handle,
* \param out handle to the result booster * \param out handle to the result booster
* \return 0 when success, -1 when failure happens * \return 0 when success, -1 when failure happens
*/ */
XGB_DLL int XGBoosterCreate(void* dmats[], XGB_DLL int XGBoosterCreate(const DMatrixHandle dmats[],
bst_ulong len, bst_ulong len,
BoosterHandle *out); BoosterHandle *out);
/*! /*!

View File

@ -463,7 +463,7 @@ int XGDMatrixNumCol(const DMatrixHandle handle,
} }
// xgboost implementation // xgboost implementation
int XGBoosterCreate(DMatrixHandle dmats[], int XGBoosterCreate(const DMatrixHandle dmats[],
bst_ulong len, bst_ulong len,
BoosterHandle *out) { BoosterHandle *out) {
API_BEGIN(); API_BEGIN();