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