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

Class Cb1

tests/python/test_callback.py:397–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395 return False
396
397 class Cb1(xgb.callback.TrainingCallback):
398 def before_iteration(self, model, epoch: int, evals_log) -> bool:
399 assert fst_call == 2
400 return False
401
402 callbacks = [Cb2(), Cb1()]
403 xgb.train({}, dtrain=xgb.QuantileDMatrix(X, y, weight=w), callbacks=callbacks)

Callers 1

test_preserve_orderMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_preserve_orderMethod · 0.68