Implement JSON IO for updaters (#5094)

* Implement JSON IO for updaters.

* Remove parameters in split evaluator.
This commit is contained in:
Jiaming Yuan
2019-12-07 00:24:00 +08:00
committed by GitHub
parent 2dcb62ddfb
commit 7ef5b78003
14 changed files with 145 additions and 92 deletions

View File

@@ -1,5 +1,5 @@
/*!
* Copyright 2014 by Contributors
* Copyright 2014-2019 by Contributors
* \file updater_sync.cc
* \brief synchronize the tree in all distributed nodes
*/
@@ -7,6 +7,8 @@
#include <vector>
#include <string>
#include <limits>
#include "xgboost/json.h"
#include "../common/io.h"
namespace xgboost {
@@ -22,6 +24,9 @@ class TreeSyncher: public TreeUpdater {
public:
void Configure(const Args& args) override {}
void LoadConfig(Json const& in) override {}
void SaveConfig(Json* p_out) const override {}
char const* Name() const override {
return "prune";
}