Used to predict data with input model.
More...
#include <predictor.hpp>
|
| | Predictor (Boosting *boosting, int num_iteration, bool is_raw_score, bool predict_leaf_index, bool predict_contrib, bool early_stop, int early_stop_freq, double early_stop_margin) |
| | Constructor.
|
| |
|
| ~Predictor () |
| | Destructor.
|
| |
|
const PredictFunction & | GetPredictFunction () const |
| |
| void | Predict (const char *data_filename, const char *result_filename, bool header) |
| | predicting on data, then saving result to disk
|
| |
Used to predict data with input model.
◆ Predictor()
| LightGBM::Predictor::Predictor |
( |
Boosting * |
boosting, |
|
|
int |
num_iteration, |
|
|
bool |
is_raw_score, |
|
|
bool |
predict_leaf_index, |
|
|
bool |
predict_contrib, |
|
|
bool |
early_stop, |
|
|
int |
early_stop_freq, |
|
|
double |
early_stop_margin |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| boosting | Input boosting model |
| num_iteration | Number of boosting round |
| is_raw_score | True if need to predict result with raw score |
| predict_leaf_index | True to output leaf index instead of prediction score |
| predict_contrib | True to output feature contributions instead of prediction score |
◆ Predict()
| void LightGBM::Predictor::Predict |
( |
const char * |
data_filename, |
|
|
const char * |
result_filename, |
|
|
bool |
header |
|
) |
| |
|
inline |
predicting on data, then saving result to disk
- Parameters
-
| data_filename | Filename of data |
| result_filename | Filename of output result |
The documentation for this class was generated from the following file:
- External/LightGBM_2.2.3/LightGBM-2.2.3/src/application/predictor.hpp