Skip to content

Commit

Permalink
revert.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Aug 24, 2022
1 parent 744edee commit fdd655c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/cpp/test_learner.cc
Expand Up @@ -446,17 +446,4 @@ TEST(Learner, MultiTarget) {
EXPECT_THROW({ learner->Configure(); }, dmlc::Error);
}
}

TEST(Learner, BaseScore) {
size_t constexpr kRows{1024}, kCols{16};
auto m = RandomDataGenerator{kRows, kCols, 0}.GenerateDMatrix(true);
std::unique_ptr<Learner> learner{Learner::Create({m})};
learner->SetParam("objective", "reg:absoluteerror");
for (size_t i = 0; i < 4; ++i) {
learner->UpdateOneIter(i, m);
}
Json config{Object{}};
learner->SaveConfig(&config);
std::cout << config << std::endl;
}
} // namespace xgboost

0 comments on commit fdd655c

Please sign in to comment.