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

Method test_custom_objective

tests/python/test_basic_models.py:152–154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 assert booster.num_boosted_rounds() == 8
151
152 def test_custom_objective(self) -> None:
153 dtrain, dtest = tm.load_agaricus(__file__)
154 run_custom_objective("hist", "cpu", dtrain, dtest)
155
156 def test_multi_eval_metric(self) -> None:
157 dtrain, dtest = tm.load_agaricus(__file__)

Callers

nothing calls this directly

Calls 1

run_custom_objectiveFunction · 0.90

Tested by

no test coverage detected