Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions
LightGBM::Predictor Class Reference

Used to predict data with input model. More...

#include <predictor.hpp>

Public Member Functions

 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
 

Detailed Description

Used to predict data with input model.

Constructor & Destructor Documentation

◆ 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
boostingInput boosting model
num_iterationNumber of boosting round
is_raw_scoreTrue if need to predict result with raw score
predict_leaf_indexTrue to output leaf index instead of prediction score
predict_contribTrue to output feature contributions instead of prediction score

Member Function Documentation

◆ 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_filenameFilename of data
result_filenameFilename of output result

The documentation for this class was generated from the following file: