MCPcopy Create free account
hub / github.com/dmlc/xgboost / TEST_F

Function TEST_F

tests/cpp/test_serialization.cc:325–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323size_t constexpr SerializationTest::kCols;
324
325TEST_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
352TEST_F(SerializationTest, Approx) {
353 TestLearnerSerialization({{"booster", "gbtree"},

Callers

nothing calls this directly

Calls 6

TestLearnerSerializationFunction · 0.85
SetParamsMethod · 0.80
UpdateOneIterMethod · 0.80
SaveMethod · 0.45
LoadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected