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

Method build_model

tests/python/test_parse_tree.py:18–23  ·  view source on GitHub ↗
(self, max_depth, num_round)

Source from the content-addressed store, hash-verified

16
17class TestTreesToDataFrame:
18 def build_model(self, max_depth, num_round):
19 dtrain, _ = tm.load_agaricus(__file__)
20 param = {"max_depth": max_depth, "objective": "binary:logistic", "verbosity": 1}
21 num_round = num_round
22 bst = xgb.train(param, dtrain, num_round)
23 return bst
24
25 def parse_dumped_model(self, booster, item_to_get, splitter):
26 item_to_get += "="

Callers 1

Calls 1

trainMethod · 0.45

Tested by

no test coverage detected