Implement JSON IO for updaters (#5094)
* Implement JSON IO for updaters. * Remove parameters in split evaluator.
This commit is contained in:
@@ -162,7 +162,7 @@ class QuantileHistMock : public QuantileHistMaker {
|
||||
}
|
||||
// Initialize split evaluator
|
||||
std::unique_ptr<SplitEvaluator> evaluator(SplitEvaluator::Create("elastic_net"));
|
||||
evaluator->Init({});
|
||||
evaluator->Init(¶m_);
|
||||
|
||||
// Now enumerate all feature*threshold combination to get best split
|
||||
// To simplify logic, we make some assumptions:
|
||||
@@ -235,6 +235,7 @@ class QuantileHistMock : public QuantileHistMaker {
|
||||
const std::vector<std::pair<std::string, std::string> >& args) :
|
||||
cfg_{args} {
|
||||
QuantileHistMaker::Configure(args);
|
||||
spliteval_->Init(¶m_);
|
||||
builder_.reset(
|
||||
new BuilderMock(
|
||||
param_,
|
||||
|
||||
Reference in New Issue
Block a user