XGBoosterCreate api unified to use const DMatrix[] argument
This commit is contained in:
parent
605c23e0dc
commit
6a5eb47789
@ -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);
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user