Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
b1b2f181
Commit
b1b2f181
authored
Oct 31, 2016
by
Guolin Ke
Browse files
rename for Eval and Predict
parent
79de250f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
include/LightGBM/c_api.h
include/LightGBM/c_api.h
+8
-8
No files found.
include/LightGBM/c_api.h
View file @
b1b2f181
...
@@ -234,30 +234,30 @@ DllExport int LGBM_BoosterUpdateOneIterCustom(BoosterHandle handle,
...
@@ -234,30 +234,30 @@ DllExport int LGBM_BoosterUpdateOneIterCustom(BoosterHandle handle,
/*!
/*!
* \brief get evaluation for training data and validation datas
* \brief get evaluation for training data and validation datas
* \param handle handle
* \param handle handle
* \param
is_eval_train >0 means need to eval trainig
data
* \param
data 0:training data, 1: 1st valid data, 2:2nd valid
data
...
* \param out_result the string containing evaluation statistics
* \param out_result the string containing evaluation statistics
* \return 0 when success, -1 when failure happens
* \return 0 when success, -1 when failure happens
*/
*/
DllExport
int
LGBM_BoosterEval
Current
(
BoosterHandle
handle
,
DllExport
int
LGBM_BoosterEval
(
BoosterHandle
handle
,
int
is_eval_train
,
int
data
,
const
char
**
*
out_result
);
const
char
**
out_result
);
/*!
/*!
* \brief make prediction for training data and validation datas
* \brief make prediction for training data and validation datas
this can be used to support customized eval function
this can be used to support customized eval function
* \param handle handle
* \param handle handle
* \param data 0:training data, 1: 1st valid data, 2:2nd valid data ...
* \param predict_type
* \param predict_type
* 0:raw score
* 0:raw score
* 1:with sigmoid transform(if needed)
* 1:with sigmoid transform(if needed)
* 2:leaf index
* 2:leaf index
* \param is_predict_train >0 means need to predict for training result
* \param out_result used to set a pointer to array
* \param out_result used to set a pointer to array
* \return 0 when success, -1 when failure happens
* \return 0 when success, -1 when failure happens
*/
*/
DllExport
int
LGBM_BoosterPredictCurrent
(
BoosterHandle
handle
,
DllExport
int
LGBM_BoosterPredict
(
BoosterHandle
handle
,
int
data
,
int
predict_type
,
int
predict_type
,
int
is_predict_train
,
const
float
**
out_result
);
const
float
***
out_result
);
/*!
/*!
* \brief make prediction for an new data set
* \brief make prediction for an new data set
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment