Commit b1b2f181 authored by Guolin Ke's avatar Guolin Ke
Browse files

rename for Eval and Predict

parent 79de250f
...@@ -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_BoosterEvalCurrent(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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment