// Copyright by Contributors #include #include #include "helpers.h" #include "xgboost/learner.h" namespace xgboost { TEST(learner, Test) { typedef std::pair arg; auto args = {arg("tree_method", "exact")}; auto mat_ptr = CreateDMatrix(10, 10, 0); std::vector> mat = {*mat_ptr}; auto learner = std::unique_ptr(Learner::Create(mat)); learner->Configure(args); delete mat_ptr; } } // namespace xgboost