-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add data split mode to DMatrix MetaInfo #8568
Changes from 21 commits
40252ee
7c35c40
26ed1a9
d3fda24
8e797f7
e12f361
8f7ac3e
fa7a670
afc5fa0
31b7112
32d7fcc
c857cd9
aa0c26c
cbd1a42
d7830cb
c9ee1d6
6782dd9
86226e0
914df2a
bde1e4c
55f8aa4
9002705
c80a3ae
58ae574
f6148a3
da7d545
417dc18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,12 +126,29 @@ XGB_DLL int XGBGetGlobalConfig(char const **out_config); | |
|
||
/*! | ||
* \brief load a data matrix | ||
* \deprecated since 1.7.3 | ||
* \param fname the name of the file | ||
* \param silent whether print messages during loading | ||
* \param out a loaded data matrix | ||
* \return 0 when success, -1 when failure happens | ||
*/ | ||
XGB_DLL int XGDMatrixCreateFromFile(const char *fname, int silent, DMatrixHandle *out); | ||
|
||
/*! | ||
* \brief load a data matrix | ||
* \param config JSON encoded parameters for DMatrix construction. Accepted fields are: | ||
* - filename: The name of the file. | ||
* - silent (optional): Whether to print message during loading. Default to true. | ||
* - need_split (optional): Whether to split the file. Default to true in distributed mode, false | ||
* otherwise. | ||
* - data_split_mode (optional): Whether to split by row or column. If need_split is true, the | ||
* file is split accordingly; if false, this is only an indicator on how the file was split | ||
* beforehand. Default to row. | ||
* \param out a loaded data matrix | ||
* \return 0 when success, -1 when failure happens | ||
*/ | ||
XGB_DLL int XGDMatrixCreateFromFileV2(char const *config, DMatrixHandle *out); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you considered making it a proper API for URI? For instance Also, do you plan to introduce the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changed to URI. For There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed it as a parameter. |
||
|
||
/** | ||
* @example c-api-demo.c | ||
*/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the next big one would be 2.0 unless something major comes up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.