Merge pull request #1048 from WojciechMigda/xgboostercreate-api-fix

XGBoosterCreate api unified to use const DMatrixHandle[] argument
This commit is contained in:
Tianqi Chen 2016-03-30 20:56:10 -07:00
commit babf1d7840
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();