Commit 8e190f59 authored by zhangyafeikimi's avatar zhangyafeikimi Committed by Guolin Ke
Browse files

fix typos and comments (#326)

parent 362f9ac4
......@@ -19,8 +19,8 @@ class Metric;
* \brief The main entrance of LightGBM. this application has two tasks:
* Train and Predict.
* Train task will train a new model
* Predict task will predicting the scores of test data using exsiting model,
* and saving the score to disk.
* Predict task will predict the scores of test data using exsisting model,
* and save the score to disk.
*/
class Application {
public:
......@@ -41,7 +41,7 @@ private:
template<typename T>
T GlobalSyncUpByMin(T& local);
/*! \brief Load parametes from command line and config file*/
/*! \brief Load parameters from command line and config file*/
void LoadParameters(int argc, char** argv);
/*! \brief Load data, including training data and validation data*/
......
......@@ -19,7 +19,7 @@
namespace LightGBM {
/*!
* \brief Used to prediction data with input model
* \brief Used to predict data with input model
*/
class Predictor {
public:
......@@ -27,7 +27,7 @@ public:
* \brief Constructor
* \param boosting Input boosting model
* \param is_raw_score True if need to predict result with raw score
* \param predict_leaf_index True if output leaf index instead of prediction score
* \param is_predict_leaf_index True if output leaf index instead of prediction score
*/
Predictor(const Boosting* boosting, bool is_raw_score, bool is_predict_leaf_index) {
boosting_ = boosting;
......@@ -69,14 +69,13 @@ public:
~Predictor() {
}
inline const PredictFunction& GetPredictFunction() {
inline const PredictFunction& GetPredictFunction() const {
return predict_fun_;
}
/*!
* \brief predicting on data, then saving result to disk
* \param data_filename Filename of data
* \param has_label True if this data contains label
* \param result_filename Filename of output result
*/
void Predict(const char* data_filename, const char* result_filename, bool has_header) {
......
......@@ -4,6 +4,7 @@
#include <LightGBM/utils/threading.h>
#include <LightGBM/utils/array_args.h>
#include <chrono>
#include <cstdio>
#include <unordered_map>
#include <limits>
......
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