Skip to content

Commit

Permalink
[jvm-packages] support missing value when constructing dmatrix with i…
Browse files Browse the repository at this point in the history
…terator (#10628)
  • Loading branch information
wbo4958 committed Jul 23, 2024
1 parent b3ed818 commit 7949a8d
Show file tree
Hide file tree
Showing 8 changed files with 294 additions and 156 deletions.
2 changes: 2 additions & 0 deletions include/xgboost/c_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,15 @@ XGB_EXTERN_C typedef int XGBCallbackDataIterNext( // NOLINT(*)
* \param data_handle The handle to the data.
* \param callback The callback to get the data.
* \param cache_info Additional information about cache file, can be null.
* \param missing Which value to represent missing value.
* \param out The created DMatrix
* \return 0 when success, -1 when failure happens.
*/
XGB_DLL int XGDMatrixCreateFromDataIter(
DataIterHandle data_handle,
XGBCallbackDataIterNext* callback,
const char* cache_info,
float missing,
DMatrixHandle *out);

/**
Expand Down
Loading

0 comments on commit 7949a8d

Please sign in to comment.