Fix typos and messages in docs (#1723)

This commit is contained in:
AbdealiJK 2016-10-31 11:22:19 +05:30 committed by Tianqi Chen
parent 6082184cd1
commit 378eb7d7c8
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
namespace xgboost { namespace xgboost {
/*! /*!
* \brief Learner class that do trainig and prediction. * \brief Learner class that does training and prediction.
* This is the user facing module of xgboost training. * This is the user facing module of xgboost training.
* The Load/Save function corresponds to the model used in python/R. * The Load/Save function corresponds to the model used in python/R.
* \code * \code
@ -173,7 +173,7 @@ class Learner : public rabit::Serializable {
bst_float base_score_; bst_float base_score_;
/*! \brief objective function */ /*! \brief objective function */
std::unique_ptr<ObjFunction> obj_; std::unique_ptr<ObjFunction> obj_;
/*! \brief The gradient boosted used by the model*/ /*! \brief The gradient booster used by the model*/
std::unique_ptr<GradientBooster> gbm_; std::unique_ptr<GradientBooster> gbm_;
/*! \brief The evaluation metrics used to evaluate the model. */ /*! \brief The evaluation metrics used to evaluate the model. */
std::vector<std::unique_ptr<Metric> > metrics_; std::vector<std::unique_ptr<Metric> > metrics_;

View File

@ -269,7 +269,7 @@ void CLIDump2Text(const CLIParam& param) {
} }
// load model // load model
CHECK_NE(param.model_in, "NULL") CHECK_NE(param.model_in, "NULL")
<< "Must specifiy model_in for dump"; << "Must specify model_in for dump";
std::unique_ptr<Learner> learner(Learner::Create({})); std::unique_ptr<Learner> learner(Learner::Create({}));
std::unique_ptr<dmlc::Stream> fi( std::unique_ptr<dmlc::Stream> fi(
dmlc::Stream::Create(param.model_in.c_str(), "r")); dmlc::Stream::Create(param.model_in.c_str(), "r"));
@ -296,7 +296,7 @@ void CLIPredict(const CLIParam& param) {
DMatrix::Load(param.test_path, param.silent != 0, param.dsplit == 2)); DMatrix::Load(param.test_path, param.silent != 0, param.dsplit == 2));
// load model // load model
CHECK_NE(param.model_in, "NULL") CHECK_NE(param.model_in, "NULL")
<< "Must specifiy model_in for dump"; << "Must specify model_in for predict";
std::unique_ptr<Learner> learner(Learner::Create({})); std::unique_ptr<Learner> learner(Learner::Create({}));
std::unique_ptr<dmlc::Stream> fi( std::unique_ptr<dmlc::Stream> fi(
dmlc::Stream::Create(param.model_in.c_str(), "r")); dmlc::Stream::Create(param.model_in.c_str(), "r"));