Use `UpdateAllowUnknown' for non-model related parameter. (#4961)
* Use `UpdateAllowUnknown' for non-model related parameter. Model parameter can not pack an additional boolean value due to binary IO format. This commit deals only with non-model related parameter configuration. * Add tidy command line arg for use-dmlc-gtest.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <limits>
|
||||
|
||||
#include "xgboost/data.h"
|
||||
#include "xgboost/parameter.h"
|
||||
#include "./param.h"
|
||||
#include "../gbm/gblinear_model.h"
|
||||
#include "../common/random.h"
|
||||
@@ -17,7 +18,7 @@
|
||||
namespace xgboost {
|
||||
namespace linear {
|
||||
|
||||
struct CoordinateParam : public dmlc::Parameter<CoordinateParam> {
|
||||
struct CoordinateParam : public XGBoostParameter<CoordinateParam> {
|
||||
int top_k;
|
||||
DMLC_DECLARE_PARAMETER(CoordinateParam) {
|
||||
DMLC_DECLARE_FIELD(top_k)
|
||||
|
||||
Reference in New Issue
Block a user