| 323 | size_t constexpr SerializationTest::kCols; |
| 324 | |
| 325 | TEST_F(SerializationTest, Exact) { |
| 326 | TestLearnerSerialization({{"booster", "gbtree"}, |
| 327 | {"seed", "0"}, |
| 328 | {"nthread", "1"}, |
| 329 | {"base_score", "3.14195265"}, |
| 330 | {"max_depth", "2"}, |
| 331 | {"tree_method", "exact"}}, |
| 332 | fmap_, p_dmat_); |
| 333 | |
| 334 | TestLearnerSerialization({{"booster", "gbtree"}, |
| 335 | {"seed", "0"}, |
| 336 | {"nthread", "1"}, |
| 337 | {"base_score", "3.14195265"}, |
| 338 | {"max_depth", "2"}, |
| 339 | {"num_parallel_tree", "4"}, |
| 340 | {"tree_method", "exact"}}, |
| 341 | fmap_, p_dmat_); |
| 342 | |
| 343 | TestLearnerSerialization({{"booster", "dart"}, |
| 344 | {"seed", "0"}, |
| 345 | {"nthread", "1"}, |
| 346 | {"base_score", "3.14195265"}, |
| 347 | {"max_depth", "2"}, |
| 348 | {"tree_method", "exact"}}, |
| 349 | fmap_, p_dmat_); |
| 350 | } |
| 351 | |
| 352 | TEST_F(SerializationTest, Approx) { |
| 353 | TestLearnerSerialization({{"booster", "gbtree"}, |
nothing calls this directly
no test coverage detected