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

Function dummy_objective

tests/python/test_with_sklearn.py:515–516  ·  view source on GitHub ↗
(y_true, y_pred)

Source from the content-addressed store, hash-verified

513 pass
514
515 def dummy_objective(y_true, y_pred):
516 raise XGBCustomObjectiveException()
517
518 xgb_model = xgb.XGBRegressor(objective=dummy_objective)
519 np.testing.assert_raises(XGBCustomObjectiveException, xgb_model.fit, X, y)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected